shuffle-0.1.4.0: Shuffle tool for UHC

Safe HaskellNone
LanguageHaskell2010

Distribution.Simple.Shuffle

Synopsis

Documentation

shuffleHooks :: UserHooks -> UserHooks Source #

Add shuffle to a set of existing userhooks. To use shuffle together with UUAGC, define a Setup.hs as follows:

import Distribution.Simple (defaultMainWithHooks)
import Distribution.Simple.Shuffle (shuffleHooks)
import Distribution.Simple.UUAGC (uuagcLibUserHook)
import UU.UUAGC (uuagc)

main :: IO ()
main = defaultMainWithHooks (shuffleHooks (uuagcLibUserHook uuagc))

For .chs files, the shuffle settings can be configured in the .cabal file as follows:

  x-shuffle-hs:        --gen-reqm=1 --preamble=no --lhs2tex=no --variant-order="1"

For the .cag files, the shuffle and AG options can be specified as:

  x-shuffle-ag:        --gen-reqm=1 --preamble=no --lhs2tex=no --variant-order="1"
  x-shuffle-ag-d:      data, rename
  x-shuffle-ag-s:      catas, semfuns, signatures, pretty, rename
  x-shuffle-ag-sd:     data, catas, semfuns, signatures, pretty, rename, module
  x-shuffle-ag-d-dep:  Data/DataFile.cag
                       Another.cag
  x-shuffle-ag-s-dep:  Main.cag
                       Data/Imports.cag
                       Another.cag