Update .cabal file so that a default build is expected to be in the GHC tree
[matthijs/master-project/cλash.git] / cλash / clash.cabal
1 name:               clash
2 version:            0.1
3 build-type:         Simple
4 synopsis:           CAES Languege for Hardware Descriptions (CλasH)
5 description:        CλasH is a toolchain/language to translate subsets of
6                     Haskell to synthesizable VHDL. It does this by translating
7                     the intermediate System Fc (GHC Core) representation to a
8                     VHDL AST, which is then written to file.
9 category:           Development
10 license:            BSD3
11 license-file:       LICENSE
12 package-url:        http://github.com/darchon/clash/tree/master
13 copyright:          Copyright (c) 2009 Christiaan Baaij & Matthijs Kooijman
14 author:             Christiaan Baaij & Matthijs Kooijman
15 stability:          alpha
16 maintainer:         christiaan.baaij@gmail.com & matthijs@stdin.nl
17 Cabal-Version:      >= 1.2
18
19 flag out-ghc-tree
20   description: Are we outside a GHC tree?
21   default: False
22   manual: True
23
24 Library
25   if flag(out-ghc-tree)
26     build-depends:  ghc-paths
27   else
28     cpp-options:    -DIN_GHC_TREE
29
30   build-depends:    ghc >= 6.11, pretty, vhdl, haskell98, syb, data-accessor, 
31                     containers, base >= 4, transformers, filepath, 
32                     template-haskell, data-accessor-template, prettyclass
33                     
34   extensions:       CPP
35                     
36   exposed-modules:  CLasH.Translator,
37                     CLasH.Translator.Annotations
38                     
39   other-modules:    CLasH.Translator.TranslatorTypes
40                     CLasH.Normalize
41                     CLasH.Normalize.NormalizeTypes
42                     CLasH.Normalize.NormalizeTools
43                     CLasH.VHDL
44                     CLasH.VHDL.Constants
45                     CLasH.VHDL.Generate
46                     CLasH.VHDL.VHDLTools
47                     CLasH.VHDL.VHDLTypes
48                     CLasH.Utils.GhcTools
49                     CLasH.Utils.HsTools
50                     CLasH.Utils.Pretty
51                     CLasH.Utils.Core.CoreShow
52                     CLasH.Utils.Core.CoreTools
53