mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-17 08:27:45 +03:00
09fdd80f94
* refactor: improve readability of interface functions Also refactors the `define` function for readability. The old definitions of these functions were quite unwieldy and difficult to read. This refactor attempts to make the monadic contexts we're juggling (often 3, Maybe, IO, Either) easier to spot. * refactor: Add context env updaters; refactor prims This commit contains a few more cleanups of the interface and define functions in Primitives. It also defines a new context module for holding functions that update context environments.
121 lines
3.7 KiB
Plaintext
121 lines
3.7 KiB
Plaintext
name: CarpHask
|
|
version: 0.4.2.0
|
|
-- synopsis:
|
|
-- description:
|
|
homepage: https://github.com/eriksvedang/Carp
|
|
license: Apache-2.0
|
|
license-file: LICENSE
|
|
author: Erik Svedäng
|
|
maintainer: erik.svedang@gmail.com
|
|
copyright: Erik Svedäng
|
|
category: General
|
|
build-type: Simple
|
|
extra-source-files: README.md
|
|
cabal-version: >=1.10
|
|
|
|
library
|
|
ghc-options: -Wall -Wno-incomplete-patterns
|
|
hs-source-dirs: src
|
|
exposed-modules: Info,
|
|
Obj,
|
|
Meta,
|
|
Project,
|
|
Parsing,
|
|
Infer,
|
|
Emit,
|
|
ColorText,
|
|
Constraints,
|
|
Deftype,
|
|
Sumtypes,
|
|
SumtypeCase,
|
|
Commands,
|
|
Template,
|
|
ToTemplate,
|
|
SymPath,
|
|
Types,
|
|
TypesToC,
|
|
Util,
|
|
Eval,
|
|
TypeError,
|
|
InitialTypes,
|
|
AssignTypes,
|
|
GenerateConstraints,
|
|
Polymorphism,
|
|
Concretize,
|
|
ArrayTemplates,
|
|
StaticArrayTemplates,
|
|
Expand,
|
|
Scoring,
|
|
Lookup,
|
|
Context,
|
|
Qualify,
|
|
Repl,
|
|
StartingEnv,
|
|
RenderDocs,
|
|
StructUtils,
|
|
Path,
|
|
Interfaces,
|
|
Primitives,
|
|
Validate,
|
|
Reify
|
|
|
|
build-depends: base >= 4.7 && < 5
|
|
, parsec == 3.1.*
|
|
, mtl
|
|
, containers
|
|
, process
|
|
, directory
|
|
, filepath
|
|
, split
|
|
, haskeline
|
|
, blaze-html
|
|
, blaze-markup
|
|
, text
|
|
, ansi-terminal >= 0.10.3
|
|
, cmark
|
|
, edit-distance
|
|
, open-browser
|
|
|
|
default-language: Haskell2010
|
|
|
|
executable carp
|
|
hs-source-dirs: app
|
|
main-is: Main.hs
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
|
build-depends: base
|
|
, CarpHask
|
|
, containers
|
|
, directory
|
|
, filepath
|
|
, haskeline
|
|
, process
|
|
, optparse-applicative
|
|
default-language: Haskell2010
|
|
|
|
executable carp-header-parse
|
|
hs-source-dirs: headerparse
|
|
main-is: Main.hs
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
|
build-depends: base
|
|
, CarpHask
|
|
, containers
|
|
, directory
|
|
, parsec
|
|
, optparse-applicative
|
|
default-language: Haskell2010
|
|
|
|
test-suite CarpHask-test
|
|
type: exitcode-stdio-1.0
|
|
hs-source-dirs: test
|
|
main-is: Spec.hs
|
|
build-depends: base
|
|
, CarpHask
|
|
, HUnit
|
|
, containers
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
|
default-language: Haskell2010
|
|
|
|
source-repository head
|
|
type: git
|
|
location: https://github.com/carp-lang/Carp
|