Permalink
Browse files

Import GHC API instances from Claus Reinke's syb-utils.

  • Loading branch information...
0 parents commit 85c10beee3adb1953b6a9790edcc9f9ea190a56f @nominolo nominolo committed Oct 10, 2008
Showing with 738 additions and 0 deletions.
  1. +29 −0 LICENSE
  2. +23 −0 Makefile
  3. +4 −0 Setup.hs
  4. +27 −0 ghc-syb.cabal
  5. +398 −0 src/GHC/SYB/Instances.hs
  6. +257 −0 src/GHC/SYB/Utils.hs
29 LICENSE
@@ -0,0 +1,29 @@
+Copyright 2008, Claus Reinke
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+- Neither name of the author nor the names of its contributors may be
+used to endorse or promote products derived from this software without
+specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND THE CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
+COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,23 @@
+HC=../ghc/ghc/stage2-inplace/ghc.exe
+PKG=../ghc/utils/ghc-pkg/install-inplace/bin/ghc-pkg.exe
+SETUP=./Setup.exe
+
+main: build
+
+Setup.exe: Setup.hs
+ $(HC) --make $<
+
+configure:
+ $(SETUP) configure --with-compiler=$(HC) --with-hc-pkg=$(PKG) --user
+
+build:
+ $(SETUP) build
+
+install:
+ $(SETUP) install
+
+test:
+ ./dist/build/test/test.exe
+
+clean:
+ $(SETUP)
@@ -0,0 +1,4 @@
+#!/usr/bin/env runhaskell
+import Distribution.Simple
+main :: IO ()
+main = defaultMain
@@ -0,0 +1,27 @@
+name: ghc-syb
+version: 0.1
+license: BSD3
+license-file: LICENSE
+author: Claus Reinke
+copyright: (c) Claus Reinke 2008
+maintainer: Thomas Schilling <nominolo@googlemail.com>
+homepage: http://github.com/nominolo/ghc-syb
+description: Scrap Your Boilerplate instances and utils for the GHC API.
+synopsis: SYB instances for the GHC API
+category: Development
+stability: provisional
+build-type: Simple
+cabal-version: >= 1.2
+-- tested-with: GHC ==6.10.1
+-- extra-source-files: README
+
+library
+ build-depends: base >= 4 && < 5,
+ syb >= 0.1 && < 0.2,
+ ghc >= 6.10 && < 6.12
+ hs-source-dirs: src
+ extensions: CPP, TypeSynonymInstances, StandaloneDeriving,
+ DeriveDataTypeable, ScopedTypeVariables,
+ RankNTypes
+ exposed-modules: GHC.SYB.Instances,
+ GHC.SYB.Utils
Oops, something went wrong.

0 comments on commit 85c10be

Please sign in to comment.