Created
March 2, 2015 11:26
-
-
Save tonymorris/43b94c0dbab97112a2ca to your computer and use it in GitHub Desktop.
strictness
This file contains hidden or 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
data Person = Person { | |
firstName :: String | |
, lastName :: String | |
} | |
data Person' = Person' { | |
firstName' :: !String | |
, lastName' :: String | |
} | |
run :: | |
String | |
run = | |
lastName $ Person (error "hi") "last" | |
run' :: | |
String | |
run' = | |
lastName' $ Person' (error "hi") "last" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment