Commit e3945410 authored by Alexandre Delanoë's avatar Alexandre Delanoë

API FIX

parent 3e7dd48c
......@@ -100,7 +100,7 @@ data IsidoreDoc = IsidoreDoc
data Reply = Replies { _docs :: [IsidoreDoc]}
| Reply { _doc :: IsidoreDoc}
| ReplyOnly { _doc :: IsidoreDoc}
deriving (Show)
instance FromJSON IsidoreDoc where
......@@ -128,7 +128,7 @@ instance FromJSON Content where
instance FromJSON Reply where
parseJSON (Array os) = Replies <$> mapM parseJSON (V.toList os)
parseJSON o = Reply <$> parseJSON o
parseJSON o = ReplyOnly <$> parseJSON o
data Output = JSON
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment