fix build error

This commit is contained in:
Alp Mestanogullari 2015-01-04 16:44:23 +01:00
parent 0edde415bd
commit 71142b08d4

View file

@ -351,10 +351,10 @@ class ToJSON a => ToSample a where
toSamples = maybe [] (return . ("",)) s
where s = toSample :: Maybe a
sampleByteString :: ToSample a => Proxy a -> Maybe ByteString
sampleByteString :: forall a. ToSample a => Proxy a -> Maybe ByteString
sampleByteString Proxy = fmap encodePretty (toSample :: Maybe a)
sampleByteStrings :: ToSample a => Proxy a -> [(Text, ByteString)]
sampleByteStrings :: forall a. ToSample a => Proxy a -> [(Text, ByteString)]
sampleByteStrings Proxy = samples & traverse._2 %~ encodePretty
where samples = toSamples :: [(Text, a)]