packages feed

concrete-haskell 0.1.0.2 → 0.1.0.3

raw patch · 2 files changed

+1/−11 lines, 2 files

Files

concrete-haskell.cabal view
@@ -1,5 +1,5 @@ name:                concrete-haskell-version:             0.1.0.2+version:             0.1.0.3 synopsis:            Library for the Concrete data format. description:         Library for the Concrete data format. homepage:            https://github.com/hltcoe
src/Data/Concrete/Utils.hs view
@@ -1,21 +1,11 @@ {-# LANGUAGE DeriveGeneric #-} module Data.Concrete.Utils        (-         jsonToCommunication        ) where  import GHC.Generics import qualified Data.Concrete as C import Data.Concrete (Communication) import Data.Text-import Data.Aeson import Data.ByteString.Lazy import Data.Map--instance FromJSON Communication where-  parseJSON (Object v) = return C.default_Communication--jsonToCommunication :: ByteString -> IO (Maybe Communication)-jsonToCommunication t = do-  return $ (decode t :: Maybe Communication)-