packages feed

freesect-0.7: freesect.cabal

Name:                freesect
Version:             0.7
Synopsis:            A Haskell syntax extension for generalised sections
Description:
    This package provides a preprocessor executable, \'freesect\', 
    which implements a generalisation of sections (\'free sections\')
    for partial application and higher-order style.  Some examples
    of free sections can be found in the included test suite; refer
    to the homepage for more info.
Homepage:            http://fremissant.net/freesect
License:             BSD3
License-file:        LICENSE
Author:              Andrew Seniuk
Maintainer:          Andrew Seniuk <rasfar@gmail.com>
Stability:           Provisional
Category:            Language
Build-type:          Custom
Cabal-version:       >= 1.2.3
Extra-source-files:
  -- You might not make use of these ones:
  000-readme, Makefile, cln, freesect.sh, ile, z, zpack,
  -- These are example modules containing free sections for testing:
  S14.hs, S15.hs, S23.hs, S24.hs, S25.hs, S26.hs, S27.hs,
  -- Snapshot of documentation; visit the homepage for up-to-date versions:
  Doc/index.html, Doc/irc.html,
  -- The rest are critical for building freesect:
  FilesAndParsing.hs,
  -- Since HSE is not yet patched to include -XFreeSections, we need
  -- to build a patched version locally, hence these dependencies:
  HSE/InternalParser.ly,
  HSE.hs,
  HSE/Annotated.hs,
  HSE/Annotated/Build.hs,
  HSE/Annotated/ExactPrint.hs,
  HSE/Annotated/Fixity.hs,
  HSE/Annotated/Simplify.hs,
  HSE/Annotated/Syntax.hs,
  HSE/Build.hs,
  HSE/Comments.hs,
  HSE/ExtScheme.hs,
  HSE/Extension.hs,
  HSE/Fixity.hs,
  HSE/InternalParser.hs,
  HSE/Lexer.hs,
  HSE/ParseMonad.hs,
  HSE/ParseSyntax.hs,
  HSE/ParseUtils.hs,
  HSE/Parser.hs,
  HSE/Pretty.hs,
  HSE/SrcLoc.hs,
  HSE/Syntax.hs

Executable freesect
  Main-Is:           Main.hs
  Build-depends:
                     base >= 4.0 && < 4.6 ,
                     directory >= 1.0 ,
                     random >= 1.0 ,
-- Control.Monad.State:
                     mtl >= 1.0 ,
-- syn >= 0.1 should suffice judging by the API but this is not tested...
                     syb >= 0.1 ,
-- Recommended but not actually needed if the CPP #define PARALLEL is 0.
-- >= 3.0 for parTraversable (could use parList, and get >= 2.0)
                     parallel >= 3.0 ,
--                   haskell-src-exts >= 1.11.1 ,
-- Since HSE is not yet patched to include -XFreeSections, we need
-- to build a patched version locally, hence these dependencies:
                     cpphs >= 1.3 ,
                     pretty >= 1.0 ,
                     array >= 0.1
  extensions:   DeriveDataTypeable, FlexibleContexts, CPP
  Build-tools:
--Build-tools: happy
  other-modules:
  ghc-options: -O0 -rtsopts -threaded
  cpp-options: -DANNOTATED=0 -DPARALLEL=0 -DGHC_F=1