[Start on cabalisation Don Stewart **20060524014108] { addfile ./Setup.hs hunk ./Setup.hs 1 +#!/usr/bin/env runhaskell +import Distribution.Simple +main = defaultMainWithHooks defaultUserHooks addfile ./frag.cabal hunk ./frag.cabal 1 +Name: frag +Version: 1.0 +License: GPL +License-file: LICENSE +Author: Mun Hon Cheong +Maintainer: dons@cse.unsw.edu.au +Build-Depends: base, haskell98, GLUT + +Executable: frag +Main-is: main.hs +ghc-options: -Wall -fglasgow-exts -O2 -funbox-strict-fields -optl-Wl,-s hunk ./readme.txt 13 -Compiles with ghc --make -O2 -fglasgow-exts main.hs +Building: + ghc --make -O2 -fglasgow-exts main.hs +or + chmod +x Setup.hs + ./Setup.hs configure --prefix=/home/foo + ./Setup.hs build + ./Setup.hs install }