Skip to content

Commit

Permalink
Test parens with Product over DataType
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjbray committed Nov 28, 2015
1 parent 214bc82 commit f72961c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/PostDecoder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ decodePost = Post
`apply` ("name" := string)
`apply` ("age" := maybe float)
`apply` ("comments" := list decodeComment)
`apply` ("promoted" := maybe decodeComment)
`apply` ("author" := maybe string)
1 change: 1 addition & 0 deletions test/PostType.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ type alias Post =
,name : String
,age : Maybe Float
,comments : List Comment
,promoted : Maybe Comment
,author : Maybe String}
1 change: 1 addition & 0 deletions test/Spec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data Post =
,name :: String
,age :: Maybe Double
,comments :: [Comment]
,promoted :: Maybe Comment
,author :: Maybe String}
deriving Generic

Expand Down

0 comments on commit f72961c

Please sign in to comment.