2022-09-16 09:03:56 +03:00
|
|
|
Cabal-version: 3.6
|
2022-08-05 09:34:44 +03:00
|
|
|
|
2021-12-20 21:22:33 +03:00
|
|
|
Name: gren
|
2022-08-12 15:34:50 +03:00
|
|
|
Version: 0.2.0
|
2018-02-22 05:26:29 +03:00
|
|
|
|
|
|
|
Synopsis:
|
2021-12-20 21:22:33 +03:00
|
|
|
The `gren` command line interface.
|
2018-02-22 05:26:29 +03:00
|
|
|
|
|
|
|
Description:
|
2021-12-20 21:22:33 +03:00
|
|
|
This includes commands like `gren make`, `gren repl`, and many others
|
|
|
|
for helping make Gren developers happy and productive.
|
2018-02-22 05:26:29 +03:00
|
|
|
|
2022-08-05 09:34:44 +03:00
|
|
|
Author: Robin Heggelund Hansen
|
|
|
|
Copyright:
|
|
|
|
Original work Copyright (c) 2011-2021, Evan Czaplicki.
|
|
|
|
Modified work Copyright (c) 2021-present, The Gren CONTRIBUTORS
|
2018-02-22 05:26:29 +03:00
|
|
|
|
2021-12-20 21:22:33 +03:00
|
|
|
License: BSD-3-Clause
|
2018-02-22 05:26:29 +03:00
|
|
|
License-file: LICENSE
|
|
|
|
|
2022-08-05 09:34:44 +03:00
|
|
|
Homepage: https://gren-lang.org
|
|
|
|
Bug-reports: https://github.com/gren-lang/compiler/issues
|
2018-02-22 05:26:29 +03:00
|
|
|
|
|
|
|
Category: Compiler, Language
|
|
|
|
|
|
|
|
Build-type: Simple
|
|
|
|
|
|
|
|
source-repository head
|
|
|
|
type: git
|
2021-12-20 21:22:33 +03:00
|
|
|
location: git://github.com/gren/compiler.git
|
2018-02-22 05:26:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
Flag dev {
|
|
|
|
Description: Turn off optimization and make warnings errors
|
|
|
|
Default: False
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-05-01 10:01:23 +03:00
|
|
|
Common gren-common
|
2018-02-22 05:26:29 +03:00
|
|
|
if flag(dev)
|
2022-08-05 10:35:54 +03:00
|
|
|
ghc-options: -O0 -Wall
|
2018-02-22 05:26:29 +03:00
|
|
|
else
|
2022-08-05 10:35:54 +03:00
|
|
|
ghc-options: -O2 -Wall -Werror -threaded "-with-rtsopts=-N"
|
2018-02-22 05:26:29 +03:00
|
|
|
|
2022-08-05 09:34:44 +03:00
|
|
|
default-language: GHC2021
|
|
|
|
|
2018-02-22 05:26:29 +03:00
|
|
|
Hs-Source-Dirs:
|
2018-02-22 21:00:52 +03:00
|
|
|
compiler/src
|
2018-02-22 22:05:32 +03:00
|
|
|
builder/src
|
2019-10-07 23:02:10 +03:00
|
|
|
terminal/impl
|
2018-11-14 01:18:15 +03:00
|
|
|
terminal/src
|
2018-02-22 05:26:29 +03:00
|
|
|
|
2018-02-22 21:00:52 +03:00
|
|
|
other-modules:
|
2019-06-18 23:43:52 +03:00
|
|
|
Bump
|
|
|
|
Diff
|
2022-04-25 04:03:21 +03:00
|
|
|
Format
|
2019-06-04 02:41:45 +03:00
|
|
|
Init
|
|
|
|
Install
|
2018-02-22 22:05:32 +03:00
|
|
|
Make
|
2022-09-09 14:08:41 +03:00
|
|
|
Docs
|
2022-09-09 21:05:11 +03:00
|
|
|
Validate
|
2019-06-18 23:43:52 +03:00
|
|
|
Repl
|
2022-09-09 15:17:56 +03:00
|
|
|
Package
|
2018-02-22 22:05:32 +03:00
|
|
|
|
2018-03-26 19:18:22 +03:00
|
|
|
-- terminal args
|
2019-10-07 23:02:10 +03:00
|
|
|
Terminal
|
|
|
|
Terminal.Chomp
|
|
|
|
Terminal.Error
|
|
|
|
Terminal.Helpers
|
|
|
|
Terminal.Internal
|
2018-03-26 19:18:22 +03:00
|
|
|
|
2019-03-24 22:38:19 +03:00
|
|
|
-- from builder/
|
2022-04-24 05:07:53 +03:00
|
|
|
AbsoluteSrcDir
|
2019-03-24 22:38:19 +03:00
|
|
|
Build
|
2019-07-03 05:09:05 +03:00
|
|
|
BackgroundWriter
|
2018-05-22 01:04:19 +03:00
|
|
|
Deps.Diff
|
2022-01-28 12:28:54 +03:00
|
|
|
Deps.Package
|
2018-05-22 01:04:19 +03:00
|
|
|
Deps.Solver
|
2019-03-24 22:38:19 +03:00
|
|
|
File
|
2019-06-18 23:43:52 +03:00
|
|
|
Generate
|
2021-12-21 18:10:03 +03:00
|
|
|
Git
|
2019-03-24 22:38:19 +03:00
|
|
|
Reporting
|
2018-05-22 01:04:19 +03:00
|
|
|
Reporting.Exit
|
|
|
|
Reporting.Exit.Help
|
2019-03-24 22:38:19 +03:00
|
|
|
Reporting.Task
|
2022-01-02 16:24:01 +03:00
|
|
|
Directories
|
2018-02-22 22:05:32 +03:00
|
|
|
|
2022-02-11 16:20:49 +03:00
|
|
|
-- Gren things
|
|
|
|
Gren.Outline
|
2022-08-19 16:28:00 +03:00
|
|
|
Gren.Platform
|
2022-02-11 16:20:49 +03:00
|
|
|
Gren.Details
|
2019-03-24 22:38:19 +03:00
|
|
|
--
|
2022-02-11 16:20:49 +03:00
|
|
|
Gren.Compiler.Imports
|
|
|
|
Gren.Compiler.Type
|
|
|
|
Gren.Compiler.Type.Extract
|
|
|
|
Gren.Constraint
|
|
|
|
Gren.Docs
|
|
|
|
Gren.Float
|
2022-05-02 00:54:53 +03:00
|
|
|
Gren.Format
|
2022-08-28 02:02:35 +03:00
|
|
|
Gren.Format.Normalize
|
2022-02-11 16:20:49 +03:00
|
|
|
Gren.Interface
|
|
|
|
Gren.Kernel
|
|
|
|
Gren.Licenses
|
|
|
|
Gren.Magnitude
|
|
|
|
Gren.ModuleName
|
|
|
|
Gren.Package
|
|
|
|
Gren.String
|
|
|
|
Gren.Version
|
2019-03-24 22:38:19 +03:00
|
|
|
|
|
|
|
-- data structures
|
|
|
|
Data.Bag
|
|
|
|
Data.Index
|
|
|
|
Data.Map.Utils
|
|
|
|
Data.Name
|
|
|
|
Data.NonEmptyList
|
|
|
|
Data.OneOrMore
|
|
|
|
Data.Utf8
|
2022-08-27 09:15:44 +03:00
|
|
|
Text.PrettyPrint.Avh4.Block
|
|
|
|
Text.PrettyPrint.Avh4.Indent
|
2019-03-24 22:38:19 +03:00
|
|
|
|
|
|
|
-- json
|
2018-05-22 01:04:19 +03:00
|
|
|
Json.Decode
|
|
|
|
Json.Encode
|
2019-06-04 02:41:45 +03:00
|
|
|
Json.String
|
2018-02-22 22:05:32 +03:00
|
|
|
|
2019-03-24 22:38:19 +03:00
|
|
|
-- from compiler/
|
2018-05-22 01:04:19 +03:00
|
|
|
AST.Canonical
|
|
|
|
AST.Optimized
|
|
|
|
AST.Source
|
|
|
|
AST.Utils.Binop
|
|
|
|
AST.Utils.Type
|
|
|
|
Canonicalize.Effects
|
|
|
|
Canonicalize.Environment
|
|
|
|
Canonicalize.Environment.Dups
|
|
|
|
Canonicalize.Environment.Foreign
|
|
|
|
Canonicalize.Environment.Local
|
|
|
|
Canonicalize.Expression
|
|
|
|
Canonicalize.Module
|
|
|
|
Canonicalize.Pattern
|
|
|
|
Canonicalize.Type
|
|
|
|
Compile
|
2019-03-24 22:38:19 +03:00
|
|
|
Generate.Html
|
2022-08-26 17:17:08 +03:00
|
|
|
Generate.Node
|
2018-05-22 01:04:19 +03:00
|
|
|
Generate.JavaScript
|
|
|
|
Generate.JavaScript.Builder
|
|
|
|
Generate.JavaScript.Expression
|
2019-03-24 22:38:19 +03:00
|
|
|
Generate.JavaScript.Functions
|
2018-05-22 01:04:19 +03:00
|
|
|
Generate.JavaScript.Name
|
2019-03-24 22:38:19 +03:00
|
|
|
Generate.Mode
|
|
|
|
Nitpick.Debug
|
2018-05-22 01:04:19 +03:00
|
|
|
Nitpick.PatternMatches
|
|
|
|
Optimize.Case
|
|
|
|
Optimize.DecisionTree
|
|
|
|
Optimize.Expression
|
|
|
|
Optimize.Module
|
|
|
|
Optimize.Names
|
|
|
|
Optimize.Port
|
|
|
|
Parse.Declaration
|
|
|
|
Parse.Expression
|
2019-03-24 22:38:19 +03:00
|
|
|
Parse.Keyword
|
2018-05-22 01:04:19 +03:00
|
|
|
Parse.Module
|
2019-03-24 22:38:19 +03:00
|
|
|
Parse.Number
|
2018-05-22 01:04:19 +03:00
|
|
|
Parse.Pattern
|
2019-05-15 19:27:44 +03:00
|
|
|
Parse.Space
|
2019-06-04 02:41:45 +03:00
|
|
|
Parse.String
|
2019-03-24 22:38:19 +03:00
|
|
|
Parse.Symbol
|
2018-05-22 01:04:19 +03:00
|
|
|
Parse.Type
|
2019-03-24 22:38:19 +03:00
|
|
|
Parse.Variable
|
|
|
|
Parse.Primitives
|
2018-05-22 01:04:19 +03:00
|
|
|
Reporting.Annotation
|
|
|
|
Reporting.Doc
|
|
|
|
Reporting.Error
|
|
|
|
Reporting.Error.Canonicalize
|
|
|
|
Reporting.Error.Docs
|
2019-05-15 19:27:44 +03:00
|
|
|
Reporting.Error.Import
|
2019-03-24 22:38:19 +03:00
|
|
|
Reporting.Error.Json
|
2018-05-22 01:04:19 +03:00
|
|
|
Reporting.Error.Main
|
|
|
|
Reporting.Error.Pattern
|
|
|
|
Reporting.Error.Syntax
|
|
|
|
Reporting.Error.Type
|
|
|
|
Reporting.Render.Code
|
|
|
|
Reporting.Render.Type
|
|
|
|
Reporting.Render.Type.Localizer
|
|
|
|
Reporting.Report
|
|
|
|
Reporting.Result
|
|
|
|
Reporting.Suggest
|
|
|
|
Reporting.Warning
|
|
|
|
Type.Constrain.Expression
|
|
|
|
Type.Constrain.Module
|
|
|
|
Type.Constrain.Pattern
|
|
|
|
Type.Error
|
|
|
|
Type.Instantiate
|
|
|
|
Type.Occurs
|
|
|
|
Type.Solve
|
|
|
|
Type.Type
|
|
|
|
Type.Unify
|
|
|
|
Type.UnionFind
|
2021-12-20 21:22:33 +03:00
|
|
|
Paths_gren
|
2018-02-22 05:26:29 +03:00
|
|
|
|
|
|
|
Build-depends:
|
2021-12-18 22:07:27 +03:00
|
|
|
ansi-terminal >= 0.11 && < 0.12,
|
2018-04-07 20:55:49 +03:00
|
|
|
ansi-wl-pprint >= 0.6.8 && < 0.7,
|
2022-09-16 09:02:37 +03:00
|
|
|
base >= 4.17 && <5,
|
2018-02-22 05:26:29 +03:00
|
|
|
binary >= 0.8 && < 0.9,
|
2022-02-11 11:10:45 +03:00
|
|
|
bytestring >= 0.11 && < 0.12,
|
2021-12-18 22:07:27 +03:00
|
|
|
containers >= 0.6 && < 0.7,
|
2018-02-22 05:26:29 +03:00
|
|
|
directory >= 1.2.3.0 && < 2.0,
|
|
|
|
edit-distance >= 0.2 && < 0.3,
|
2018-11-26 18:58:22 +03:00
|
|
|
filelock,
|
2018-02-22 05:26:29 +03:00
|
|
|
filepath >= 1 && < 2.0,
|
2018-11-16 02:01:25 +03:00
|
|
|
ghc-prim >= 0.5.2,
|
2018-02-22 05:26:29 +03:00
|
|
|
haskeline,
|
|
|
|
mtl >= 2.2.1 && < 3,
|
|
|
|
process,
|
|
|
|
raw-strings-qq,
|
|
|
|
scientific,
|
2019-06-25 01:30:57 +03:00
|
|
|
time >= 1.9.1,
|
2018-02-22 05:26:29 +03:00
|
|
|
utf8-string,
|
2022-08-05 11:53:16 +03:00
|
|
|
vector,
|
|
|
|
text >= 2 && < 3
|
2022-05-01 10:01:23 +03:00
|
|
|
|
|
|
|
Executable gren
|
|
|
|
Import:
|
|
|
|
gren-common
|
|
|
|
|
2022-08-26 10:06:41 +03:00
|
|
|
default-language: GHC2021
|
|
|
|
|
2022-05-01 10:01:23 +03:00
|
|
|
Main-Is:
|
|
|
|
Main.hs
|
2022-05-01 10:13:19 +03:00
|
|
|
|
|
|
|
Test-Suite gren-tests
|
|
|
|
Import:
|
|
|
|
gren-common
|
|
|
|
|
2022-08-26 10:06:41 +03:00
|
|
|
default-language: GHC2021
|
|
|
|
|
2022-05-01 10:13:19 +03:00
|
|
|
Type:
|
|
|
|
exitcode-stdio-1.0
|
|
|
|
|
|
|
|
Hs-Source-Dirs:
|
|
|
|
tests
|
|
|
|
|
|
|
|
Main-Is:
|
|
|
|
Spec.hs
|
|
|
|
|
2022-05-01 11:28:43 +03:00
|
|
|
other-modules:
|
|
|
|
Helpers.Instances
|
2022-09-09 11:17:29 +03:00
|
|
|
Helpers.Parse
|
2022-05-01 11:28:43 +03:00
|
|
|
|
|
|
|
-- tests
|
|
|
|
Parse.SpaceSpec
|
2022-08-05 15:50:15 +03:00
|
|
|
Parse.RecordUpdateSpec
|
2022-09-01 21:39:08 +03:00
|
|
|
Parse.UnderscorePatternSpec
|
2022-05-01 11:28:43 +03:00
|
|
|
|
2022-05-01 10:13:19 +03:00
|
|
|
Build-Depends:
|
|
|
|
hspec >= 2.7.10 && < 3
|
|
|
|
|
|
|
|
Build-Tool-Depends:
|
|
|
|
hspec-discover:hspec-discover >= 2.7.10 && < 3
|