93 lines
3.4 KiB
Plaintext
93 lines
3.4 KiB
Plaintext
cabal-version: 3.0
|
|
name: qbe
|
|
-- First component matches the QBE major version
|
|
version: 1.1.0.0
|
|
synopsis: Types and prettyprinter for the IL of the QBE compiler backend
|
|
description:
|
|
This library provides types representing
|
|
the [intermediate language](https://c9x.me/compile/doc/il.html)
|
|
of the [QBE](https://c9x.me/compile/) compiler backend.
|
|
It also provides pretty-printing instances based on
|
|
the [@prettyprinter@](https://hackage.haskell.org/package/prettyprinter)
|
|
library, that emit the textual representation of the IL.
|
|
homepage: https://sr.ht/~fgaz/qbe-hs
|
|
bug-reports: https://todo.sr.ht/~fgaz/qbe-hs
|
|
license: BSD-3-Clause
|
|
license-file: LICENSE
|
|
author: Francesco Gazzetta
|
|
maintainer: Francesco Gazzetta <fgaz@fgaz.me>
|
|
copyright: 2022 Francesco Gazzetta
|
|
category: Language
|
|
build-type: Simple
|
|
extra-doc-files: CHANGELOG.md
|
|
extra-source-files: README.md golden/*.qbe
|
|
tested-with:
|
|
, GHC == 8.10.7
|
|
, GHC == 9.0.2
|
|
, GHC == 9.2.2
|
|
, GHC == 9.4.2
|
|
, GHC == 9.10.3
|
|
|
|
source-repository head
|
|
type: git
|
|
location: https://git.sr.ht/~fgaz/qbe-hs
|
|
|
|
common common
|
|
ghc-options: -Wall
|
|
-Wunused-packages
|
|
-Wmissing-home-modules
|
|
-Wredundant-constraints
|
|
-Wincomplete-uni-patterns
|
|
-Wincomplete-record-updates
|
|
-fdefer-type-errors
|
|
-fno-show-valid-hole-fits
|
|
-fdefer-out-of-scope-variables
|
|
-Wno-typed-holes
|
|
default-language: Haskell2010
|
|
|
|
library
|
|
import: common
|
|
exposed-modules: Language.QBE Language.QBE.QQ
|
|
-- other-modules:
|
|
other-extensions: DataKinds
|
|
KindSignatures
|
|
GeneralizedNewtypeDeriving
|
|
FlexibleInstances
|
|
OverloadedStrings
|
|
PatternSynonyms
|
|
build-depends: base ^>= 4.16.1.0
|
|
|| ^>= 4.14
|
|
|| ^>= 4.15
|
|
|| ^>= 4.17
|
|
|| ^>= 4.20
|
|
|| ^>= 4.21
|
|
|| ^>= 4.22
|
|
, text ^>= 1.2.5
|
|
|| ^>= 2.1.4
|
|
, text-short >= 0.1 || ^>= 0.1.6.1
|
|
, bytestring ^>= 0.11.3
|
|
|| ^>= 0.12
|
|
, hashable ^>= 1.4.0
|
|
|| ^>= 1.5.0
|
|
, deepseq ^>= 1.4.4 || ^>= 1.5
|
|
, prettyprinter ^>= 1.7.1
|
|
, megaparsec ^>= 9.7.0
|
|
, template-haskell
|
|
hs-source-dirs: src
|
|
|
|
test-suite golden
|
|
import: common
|
|
type: exitcode-stdio-1.0
|
|
hs-source-dirs: test
|
|
main-is: Main.hs
|
|
build-depends: base
|
|
, qbe
|
|
, prettyprinter
|
|
, filepath ^>= 1.4.2.2
|
|
, tasty ^>= 1.4.2.3
|
|
, tasty-silver ^>= 3.3.1.1 || ^>= 3.3.2.1
|
|
other-extensions: TypeApplications
|
|
OverloadedStrings
|
|
DataKinds
|
|
ExistentialQuantification
|