tlex-core-0.2.0.0: tlex-core.cabal
cabal-version: 3.0
build-type: Custom
name: tlex-core
version: 0.2.0.0
license: Apache-2.0 OR MPL-2.0
license-file: LICENSE
copyright: (c) 2021 Mizunashi Mana
author: Mizunashi Mana
maintainer: mizunashi-mana@noreply.git
category: Parsing
homepage: https://github.com/mizunashi-mana/tlex
bug-reports: https://github.com/mizunashi-mana/tlex/issues
synopsis: A lexer generator
description:
Tlex is haskell libraries and toolchains for generating lexical analyzer.
See also: https://github.com/mizunashi-mana/tlex
extra-source-files:
README.md
CHANGELOG.md
source-repository head
type: git
location: https://github.com/mizunashi-mana/tlex.git
flag develop
default: False
manual: True
description: Turn on some options for development
common general
default-language:
Haskell2010
default-extensions:
NoImplicitPrelude
BangPatterns
BinaryLiterals
BlockArguments
ConstraintKinds
DataKinds
DefaultSignatures
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingVia
DuplicateRecordFields
EmptyCase
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
InstanceSigs
LambdaCase
MagicHash
MultiParamTypeClasses
MultiWayIf
NamedFieldPuns
NegativeLiterals
NumericUnderscores
OverloadedLabels
PackageImports
PatternSynonyms
PolyKinds
RankNTypes
ScopedTypeVariables
StandaloneDeriving
Strict
TypeApplications
TypeFamilies
TypeOperators
UnboxedSums
UnboxedTuples
if flag(develop)
ghc-options:
-Wall
-Wcompat
-Wincomplete-uni-patterns
-Wmonomorphism-restriction
-Wpartial-fields
-fprint-explicit-foralls
-frefinement-level-hole-fits=1
-dcore-lint
build-depends:
base >= 4.12.0 && < 4.15,
-- project depends
array >= 0.5.3 && < 0.6,
containers >= 0.6.0 && < 0.7,
hashable >= 1.3.0 && < 1.4,
transformers >= 0.5.6 && < 0.6,
unordered-containers >= 0.2.13 && < 0.3,
autogen-modules:
Paths_tlex_core
other-modules:
Paths_tlex_core
custom-setup
setup-depends:
base,
Cabal,
cabal-doctest,
library
import:
general,
hs-source-dirs:
src
exposed-modules:
Language.Lexer.Tlex.Prelude
Language.Lexer.Tlex.Machine.State
Language.Lexer.Tlex.Machine.Pattern
Language.Lexer.Tlex.Machine.NFA
Language.Lexer.Tlex.Machine.DFA
Language.Lexer.Tlex.Pipeline.Pattern2Nfa
Language.Lexer.Tlex.Pipeline.Nfa2Dfa
Language.Lexer.Tlex.Pipeline.MinDfa
Language.Lexer.Tlex.Data.EnumSet
Language.Lexer.Tlex.Data.EnumMap
Language.Lexer.Tlex.Data.SymEnumSet
Language.Lexer.Tlex.Data.Bag
other-modules:
Language.Lexer.Tlex.Prelude.Core
Language.Lexer.Tlex.Data.Graph
test-suite doctest
import:
general,
type:
exitcode-stdio-1.0
hs-source-dirs:
test/doctest
main-is:
Doctest.hs
build-depends:
doctest,
QuickCheck,
autogen-modules:
Build_doctests
other-modules:
Build_doctests
test-suite spec
import:
general,
type:
exitcode-stdio-1.0
hs-source-dirs:
test/spec
main-is:
HSpecDriver.hs
ghc-options:
-Wno-missing-home-modules
build-tool-depends:
hspec-discover:hspec-discover,
build-depends:
tlex-core,
hspec,
QuickCheck,