Skip to content

Instantly share code, notes, and snippets.

@nhibberd
Created February 22, 2014 12:02
Show Gist options
  • Save nhibberd/9152918 to your computer and use it in GitHub Desktop.
Save nhibberd/9152918 to your computer and use it in GitHub Desktop.
data Test =
Test {
_id :: Text
, _data :: Text
} deriving (Show, Eq)
makeLenses ''Test
z :: Test -> Text
z a =
(a ^. id)
Couldn't match type `Text' with `Test'
Expected type: Getting Text Test Text
Actual type: (Text -> Const Text Text) -> Text -> Const Text Tex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment