Created
March 5, 2016 05:26
-
-
Save nuttycom/dfd757be2f61d7979f73 to your computer and use it in GitHub Desktop.
Deriving FAIL
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
No instance for (Show C.UTCTime) | |
arising from the first field of ‘X’ (type ‘C.UTCTime’) | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
When deriving the instance for (Show X) |
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
module Test where | |
import Data.Thyme.Clock as C | |
data X = X { _t :: C.UTCTime } deriving Show | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment