Answers for "extracting json data haskell"

0

extracting json data haskell

{-# LANGUAGE DeriveGeneric #-}

import Data.Aeson
import GHC.Generics

data Conversion =
  Conversion { to :: !Text
             , rate :: Double
             , from :: !Text
             , v :: Double
               } deriving (Show, Generic)

instance FromJSON Conversion
instance ToJSON Conversion
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language