Skip to content

Instantly share code, notes, and snippets.

@poying
Last active June 25, 2016 13:44
Show Gist options
  • Select an option

  • Save poying/f50d12ff89152c6b14d8b46c4cc2cfc1 to your computer and use it in GitHub Desktop.

Select an option

Save poying/f50d12ff89152c6b14d8b46c4cc2cfc1 to your computer and use it in GitHub Desktop.

Revisions

  1. poying revised this gist Jun 25, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion port.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    ### ADT

    `port` 不能使用 ADT,所以任何有巢狀結構的的資料在 `port` 都會遇到問題。目前的解法是在 outcome 的地方先用 `JSON.stringify` 轉成 `String`,income 再用 `JSON.parse` 轉成 `Maybe a`(噴 error 的時候就是 `Nothing`
    `port` 不能使用 ADT,所以任何有巢狀結構的的資料在 `port` 都會遇到問題。目前的解法是在 outcome 的地方先用 `JSON.stringify` 轉成 `String`,income 再用 `JSON.parse` 轉成 `Maybe a`(噴 error 的時候就是 `Nothing`,這個解法有點問題,暫時先這樣 :p
  2. poying revised this gist Jun 25, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion port.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    ### ADT

    `port` 不能使用 ADT,所以任何有巢狀結構的的資料在 `port` 都會遇到問題。目前的解法是在 outcome 的地方先用 `JSON.stringify` 轉成 `String`,income 再用 `JSON.parse` 轉成 `Maybe a`
    `port` 不能使用 ADT,所以任何有巢狀結構的的資料在 `port` 都會遇到問題。目前的解法是在 outcome 的地方先用 `JSON.stringify` 轉成 `String`,income 再用 `JSON.parse` 轉成 `Maybe a`(噴 error 的時候就是 `Nothing`
  3. poying revised this gist Jun 25, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion port.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    ### ADT

    `port` 不能使用 ADT,所以任何有巢狀結構的的資料在 `port` 都會遇到問題outcome 的地方先用 `JSON.stringify` 轉成 `String`,income 再用 `JSON.parse` 轉成 `Maybe a`
    `port` 不能使用 ADT,所以任何有巢狀結構的的資料在 `port` 都會遇到問題。目前的解法是在 outcome 的地方先用 `JSON.stringify` 轉成 `String`,income 再用 `JSON.parse` 轉成 `Maybe a`
  4. poying created this gist Jun 25, 2016.
    3 changes: 3 additions & 0 deletions port.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    ### ADT

    `port` 不能使用 ADT,所以任何有巢狀結構的的資料在 `port` 都會遇到問題,outcome 的地方先用 `JSON.stringify` 轉成 `String`,income 再用 `JSON.parse` 轉成 `Maybe a`