packages feed

composite-aeson-path (empty) → 0.7.4.0

raw patch · 3 files changed

+65/−0 lines, 3 filesdep +basedep +composite-aesondep +pathsetup-changed

Dependencies added: base, composite-aeson, path

Files

+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ composite-aeson-path.cabal view
@@ -0,0 +1,34 @@+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.33.0.+--+-- see: https://github.com/sol/hpack+--+-- hash: 717b95aa714358eb547319396090806e18cf1d0b5971d4f366d490637ea4ab19++name:           composite-aeson-path+version:        0.7.4.0+synopsis:       Formatting data for the path library.+description:    JsonFormat for Path.+category:       Records+homepage:       https://github.com/ConferOpenSource/composite#readme+author:         Confer Health, Inc+maintainer:     oss@vitalbio.com+copyright:      2017 Confer Health, Inc., 2020 Vital Biosciences+license:        BSD3+build-type:     Simple++library+  exposed-modules:+      Composite.Aeson.Path+  other-modules:+      Paths_composite_aeson_path+  hs-source-dirs:+      src+  default-extensions: DataKinds FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving LambdaCase MultiParamTypeClasses MultiWayIf OverloadedStrings PatternSynonyms PolyKinds QuasiQuotes RankNTypes ScopedTypeVariables StandaloneDeriving StrictData TemplateHaskell TupleSections TypeFamilies TypeOperators ViewPatterns+  ghc-options: -Wall -O2+  build-depends:+      base >=4.7 && <5+    , composite-aeson >=0.7 && <0.8+    , path >=0.6 && <0.9+  default-language: Haskell2010
+ src/Composite/Aeson/Path.hs view
@@ -0,0 +1,29 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}+module Composite.Aeson.Path where++import Composite.Aeson(JsonFormat, aesonJsonFormat, DefaultJsonFormat(defaultJsonFormat))+import Path(Path, Rel, Abs, File, Dir)++relFileJsonFormat :: JsonFormat e (Path Rel File)+relFileJsonFormat = aesonJsonFormat++relDirJsonFormat :: JsonFormat e (Path Rel Dir)+relDirJsonFormat = aesonJsonFormat++absFileJsonFormat :: JsonFormat e (Path Abs File)+absFileJsonFormat = aesonJsonFormat++absDirJsonFormat :: JsonFormat e (Path Abs Dir)+absDirJsonFormat = aesonJsonFormat++instance DefaultJsonFormat (Path Rel File) where+  defaultJsonFormat = relFileJsonFormat++instance DefaultJsonFormat (Path Rel Dir) where+  defaultJsonFormat = relDirJsonFormat++instance DefaultJsonFormat (Path Abs File) where+  defaultJsonFormat = absFileJsonFormat++instance DefaultJsonFormat (Path Abs Dir) where+  defaultJsonFormat = absDirJsonFormat