Skip to content

Commit

Permalink
CPP for aeson 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Shaw committed Jun 29, 2016
1 parent 94890cb commit 7034837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Language/Haskell/TH/Path/Core.hs
Expand Up @@ -102,8 +102,10 @@ import Web.Routes.TH (derivePathInfo)
import Text.Parsec.Prim ((<|>))
import GHC.Base (ap)

#if !MIN_VERSION_aeson(0,11,0)
deriving instance FromJSON (Proxy a)
deriving instance ToJSON (Proxy a)
#endif

treeMap :: (a -> b) -> Tree a -> Tree b
treeMap f (Node x ns) = Node (f x) (forestMap f ns)
Expand Down

0 comments on commit 7034837

Please sign in to comment.