clash-ghc-1.0.0: clash-ghc.cabal
Name: clash-ghc
Version: 1.0.0
Synopsis: CAES Language for Synchronous Hardware
Description:
Clash is a functional hardware description language that borrows both its
syntax and semantics from the functional programming language Haskell. The
Clash compiler transforms these high-level descriptions to low-level
synthesizable VHDL, Verilog, or SystemVerilog.
.
Features of Clash:
.
* Strongly typed, but with a very high degree of type inference, enabling both
safe and fast prototyping using concise descriptions.
.
* Interactive REPL: load your designs in an interpreter and easily test all
your component without needing to setup a test bench.
.
* Higher-order functions, with type inference, result in designs that are
fully parametric by default.
.
* Synchronous sequential circuit design based on streams of values, called
@Signal@s, lead to natural descriptions of feedback loops.
.
* Support for multiple clock domains, with type safe clock domain crossing.
.
.
This package provides:
.
* Clash Compiler binary using GHC/Haskell as a frontend
.
.
Prelude library: <http://hackage.haskell.org/package/clash-prelude>
Homepage: http://www.clash-lang.org/
bug-reports: http://github.com/clash-lang/clash-compiler/issues
License: BSD2
License-file: LICENSE
Author: The Clash Authors
Maintainer: QBayLogic B.V. <devops@qbaylogic.com>
Copyright: Copyright © 2012-2016, University of Twente,
2016-2017, Myrtle Software Ltd,
2017-2019, QBayLogic B.V., Google Inc.
Category: Hardware
Build-type: Simple
Extra-source-files: README.md,
CHANGELOG.md,
LICENSE_GHC,
cbits/PosixSource.h,
src-bin-821/Clash/GHCi/HsVersions.h
src-bin-841/Clash/GHCi/HsVersions.h
Cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/clash-lang/clash-compiler.git
flag dynamic
description:
Build Clash binaries with GHC flag `-dynamic`. This flag should only be used for packaging purposes. Installations using cabal should use `--enable-executable-dynamic`!
default: False
manual: True
flag use-ghc-paths
description:
Locate the GHC core libraries using the `ghc-paths` package. Note: this flag may make binaries less relocatable, by hard-coding an absolute path to the core libraries.
default: False
manual: True
executable clash
Main-Is: src-ghc/Batch.hs
Build-Depends: base, clash-ghc
GHC-Options: -Wall
if flag(dynamic)
GHC-Options: -dynamic
extra-libraries: pthread
default-language: Haskell2010
executable clashi
Main-Is: src-ghc/Interactive.hs
Build-Depends: base, clash-ghc
GHC-Options: -Wall
if flag(dynamic)
GHC-Options: -dynamic
extra-libraries: pthread
default-language: Haskell2010
library
HS-Source-Dirs: src-ghc, src-bin-common
-- when we move to `cabal-version: 2.2`, we can use elif instead of these nested ifs, but ghc-8.2 comes with cabal-2.0
if impl(ghc >= 8.7.0)
HS-Source-Dirs: src-bin-881
else
if impl(ghc >= 8.6.0)
HS-Source-Dirs: src-bin-861
else
if impl(ghc >= 8.4.1)
HS-Source-Dirs: src-bin-841
else
if impl(ghc >= 8.2.1)
HS-Source-Dirs: src-bin-821
default-language: Haskell2010
GHC-Options: -Wall -fno-warn-name-shadowing
CPP-Options: -DGHCI
default-extensions: ForeignFunctionInterface
UnboxedTuples
FlexibleInstances
MagicHash
CPP
PatternGuards
NondecreasingIndentation
other-extensions: FlexibleContexts
OverloadedStrings
RecordWildCards
ScopedTypeVariables
TemplateHaskell
TupleSections
ViewPatterns
Build-Depends: array >= 0.4 && < 0.6,
base >= 4.10 && < 5,
bifunctors >= 4.1.1 && < 6.0,
bytestring >= 0.9 && < 0.11,
containers >= 0.5.4.0 && < 0.7,
directory >= 1.2 && < 1.4,
filepath >= 1.3 && < 1.5,
ghc >= 8.2.0 && < 8.9,
process >= 1.2 && < 1.7,
hashable >= 1.1.2.3 && < 1.4,
haskeline >= 0.7.0.3 && < 0.8,
lens >= 4.0.5 && < 4.19,
mtl >= 2.1.1 && < 2.3,
text >= 1.2.2 && < 1.3,
transformers >= 0.5.2.0 && < 0.6,
unordered-containers >= 0.2.1.0 && < 0.3,
clash-lib >= 1.0 && < 1.1,
clash-prelude >= 1.0 && < 1.1,
concurrent-supply >= 0.1.7 && < 0.2,
ghc-typelits-extra >= 0.3.1 && < 0.4,
ghc-typelits-knownnat >= 0.6 && < 0.8,
ghc-typelits-natnormalise >= 0.6 && < 0.8,
deepseq >= 1.3.0.2 && < 1.5,
time >= 1.4.0.1 && < 1.10,
ghc-boot >= 8.2.0 && < 8.9,
ghc-prim >= 0.3.1.0 && < 0.6,
ghci >= 8.2.0 && < 8.9,
uniplate >= 1.6.12 && < 1.8,
reflection >= 2.1.2 && < 3.0,
integer-gmp >= 1.0.1.0 && < 2.0,
primitive >= 0.5.0.1 && < 1.0,
template-haskell >= 2.8.0.0 && < 2.16,
utf8-string >= 1.0.0.0 && < 1.1.0.0,
vector >= 0.11 && < 1.0
if flag(use-ghc-paths)
Build-Depends: ghc-paths
CPP-Options: -DUSE_GHC_PATHS=1
if os(windows)
Build-Depends: Win32 >= 2.3.1 && < 2.9
else
Build-Depends: unix >= 2.7.1 && < 2.9
Include-dirs: cbits
C-Sources: cbits/hschooks.c
Exposed-Modules: Clash.Main
-- exposed for use by the benchmarks
Clash.GHC.Evaluator
Clash.GHC.GenerateBindings
Clash.GHC.LoadModules
Clash.GHC.NetlistTypes
Clash.GHCi.Common
Other-Modules: Clash.GHCi.UI
Clash.GHCi.UI.Info
Clash.GHCi.UI.Monad
Clash.GHCi.UI.Tags
Clash.GHC.ClashFlags
Clash.GHC.GHC2Core
Clash.GHC.LoadInterfaceFiles
Clash.GHC.Util
Paths_clash_ghc
if impl(ghc >= 8.6.0)
Other-Modules: Clash.GHCi.Leak
if impl(ghc >= 8.8.0)
Other-Modules: Clash.GHCi.Util