packages feed

syntax-trees-fork-bairyn-0.1.2.5: syntax-trees-fork-bairyn.cabal

name:                syntax-trees-fork-bairyn
-- Don't forget to bump the tag too.
version:             0.1.2.5
cabal-version:       >= 1.18
build-type:          Simple
license:             BSD3
license-file:        LICENSE
category:            Language
author:
  Dominic Orchard
 ,Byron Johnson
maintainer:
  dom.orchard@gmail.com
 ,ByronJohnsonFP@gmail.com
extra-source-files:
  examples/Foo.lhs
-- The extra-doc-files property requires cabal-version >= 1.18.
extra-doc-files:
  README.md
synopsis:            Convert between different Haskell syntax trees.  Bairyn's fork.
description:
  This is a fork of Dominic Orchard's syntax-trees package that is patched
  just to build on Haskell's more modern ecosystem.
  .
  Provides an instance that translates haskell-src-exts expression trees into
  Template Haskell expression trees in a way that depends only on the
  haskell-src-exts syntax tree and agreement on the pretty-printed
  representation of Haskell between haskell-src-exts pretty-printer and
  Template Haskell quotations (as opposed to depending on both TH and
  haskell-src-exts syntax tree representations).
  .
  Instead of converting between data types,
  haskell-src-exts syntax trees are pretty-printed and wrapped in
  a TH quotation which is then interpreted as a Haskell program,
  yielding a TH Exp tree. Free variables in the haskell-src-exts tree are
  preserved by lifting them to TH splices prior to pretty-printing.

library
  default-language: Haskell2010
  hs-source-dirs:   src
  ghc-options:      -Wall
  default-extensions:
    --,GADTs
     TemplateHaskell
    --,DeriveDataTypeable
  other-extensions:
    MultiParamTypeClasses
  build-depends:
    base             >= 4    && < 5
   ,mtl
   -- haskell-src-exts introduces a change in the PatBind constructor of
   -- 'Language.Haskell.Syntax.Exts.Syntax.Decl' in version 1.16.0.
   ,haskell-src-exts >= 1.16 && < 2
   ,template-haskell
   ,uniplate
   ,hint
  exposed-modules:
    Fork.Bairyn.Language.Haskell.SyntaxTrees
   ,Fork.Bairyn.Language.Haskell.SyntaxTrees.Main
   ,Fork.Bairyn.Language.Haskell.SyntaxTrees.ExtsToTH

source-repository head
  type:     git
  location: git@github.com:bairyn/syntax-trees.git

source-repository this
  type:     git
  location: git@github.com:bairyn/syntax-trees.git
  tag:      v0.1.2.5