Skip to content

Commit 0266229

Browse files
authored
Merge pull request #39 from elm-tooling/fixed-encoder-intention
Fixed: Encoder intention documentation
2 parents 25083eb + 2f3d646 commit 0266229

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
<spot>encode</spot> : Int -> Encode.Value
1+
import Json.Encode as Encode
2+
3+
type alias Person =
4+
{ name : String
5+
, age : Int
6+
}
7+
8+
<spot>personEncoder</spot> : Person -> Encode.Value

0 commit comments

Comments
 (0)