Skip to content

Instantly share code, notes, and snippets.

@nuttycom
Created March 5, 2016 05:26
Show Gist options
  • Save nuttycom/dfd757be2f61d7979f73 to your computer and use it in GitHub Desktop.
Save nuttycom/dfd757be2f61d7979f73 to your computer and use it in GitHub Desktop.
Deriving FAIL
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)
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