elm-bridge 0.8.1 → 0.8.2
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- elm-bridge.cabal +1/−1
- src/Elm/Derive.hs +2/−2
elm-bridge.cabal view
@@ -1,5 +1,5 @@ name: elm-bridge-version: 0.8.1+version: 0.8.2 synopsis: Derive Elm types and Json code from Haskell types, using aeson's options description: Building the bridge from Haskell to Elm and back. Define types once, and derive the aeson and elm functions at the same time, using any aeson
src/Elm/Derive.hs view
@@ -30,7 +30,7 @@ import Control.Applicative import Control.Monad-import Data.Aeson.TH (SumEncoding (..), deriveJSON)+import Data.Aeson.TH (SumEncoding (..), deriveJSON, tagSingleConstructors) import qualified Data.Aeson.TH as A import Data.Char (toLower) import Language.Haskell.TH@@ -187,7 +187,7 @@ DataD _ _ tyVars _ constrs _ -> case constrs of [] -> fail "Can not derive empty data decls"- [RecC _ conFields] -> deriveAlias False opts name tyVars conFields+ [RecC _ conFields] | not (tagSingleConstructors opts) -> deriveAlias False opts name tyVars conFields _ -> deriveSum opts name tyVars constrs NewtypeD [] _ [] Nothing (NormalC _ [(Bang NoSourceUnpackedness NoSourceStrictness, otherTy)]) [] -> deriveSynonym opts name [] otherTy