mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
;fix Json.hs with old GHCs
This commit is contained in:
parent
a86a5c4f53
commit
c59565ca5b
@ -4,7 +4,7 @@ JSON instances. Should they be in Types.hs ?
|
|||||||
|
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
|
|
||||||
--{-# LANGUAGE CPP #-}
|
{-# LANGUAGE CPP #-}
|
||||||
--{-# LANGUAGE DataKinds #-}
|
--{-# LANGUAGE DataKinds #-}
|
||||||
--{-# LANGUAGE DeriveAnyClass #-}
|
--{-# LANGUAGE DeriveAnyClass #-}
|
||||||
{-# LANGUAGE DeriveGeneric #-}
|
{-# LANGUAGE DeriveGeneric #-}
|
||||||
@ -33,6 +33,9 @@ module Hledger.Data.Json (
|
|||||||
,readJsonFile
|
,readJsonFile
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
#if !(MIN_VERSION_base(4,13,0))
|
||||||
|
import Data.Semigroup ((<>))
|
||||||
|
#endif
|
||||||
import Data.Aeson
|
import Data.Aeson
|
||||||
import Data.Aeson.Encode.Pretty (encodePrettyToTextBuilder)
|
import Data.Aeson.Encode.Pretty (encodePrettyToTextBuilder)
|
||||||
--import Data.Aeson.TH
|
--import Data.Aeson.TH
|
||||||
|
Loading…
Reference in New Issue
Block a user