packages feed

purescript-iso 0.0.2 → 0.0.2.1

raw patch · 2 files changed

+23/−2 lines, 2 files

Files

purescript-iso.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 4320476adf4bd761d45ce24ff0390b54cfabe9cf0b900952d6383f0acb87baff+-- hash: 5a8f0bf52c2d05c29489bec4ce87c26941be52640d60ae91078e9fe8470a6fdf  name:           purescript-iso-version:        0.0.2+version:        0.0.2.1 synopsis:       Isomorphic trivial data type definitions over JSON description:    Please see the README on GitHub at <https://github.com/githubuser/purescript-iso#readme> category:       Web@@ -36,6 +36,7 @@       Data.Aeson.JSONString       Data.Aeson.JSONTuple       Data.Aeson.JSONUnit+      Data.Aeson.JSONVoid       Test.Serialization       Test.Serialization.Types   other-modules:
+ src/Data/Aeson/JSONVoid.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE+    OverloadedStrings+  , DeriveGeneric+  #-}++module Data.Aeson.JSONVoid where++import Data.Aeson (ToJSON (..), FromJSON (..), Value (String))+import Data.Aeson.Types (typeMismatch)+import GHC.Generics (Generic)+++data JSONVoid+  deriving (Generic)++instance ToJSON JSONVoid where+  toJSON _ = String ""++instance FromJSON JSONVoid where+  parseJSON = typeMismatch "JSONVoid"