Created
March 27, 2014 00:10
-
-
Save evancz/9796849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Point3D = { x : Float, y : Float, z : Maybe Float } | |
deriving Json, New, Binary | |
-- Resulting in the folliwing derived values: | |
Point3D.Json.encode : Point3D -> String | |
Point3D.Json.decode : String -> Maybe Point3D | |
Point3D.New : Float -> Float -> Maybe Float -> Point3D | |
Point3D.Binary.encode : Point3D -> Bits | |
Point3D.Binary.decode : Bits -> Maybe Point3D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment