Skip to content

Commit

Permalink
Import GHC API instances from Claus Reinke's syb-utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
nominolo committed Oct 10, 2008
0 parents commit 85c10be
Show file tree
Hide file tree
Showing 6 changed files with 738 additions and 0 deletions.
29 changes: 29 additions & 0 deletions 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.
23 changes: 23 additions & 0 deletions Makefile
@@ -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)
4 changes: 4 additions & 0 deletions Setup.hs
@@ -0,0 +1,4 @@
#!/usr/bin/env runhaskell
import Distribution.Simple
main :: IO ()
main = defaultMain
27 changes: 27 additions & 0 deletions ghc-syb.cabal
@@ -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

0 comments on commit 85c10be

Please sign in to comment.