Commit Graph

159 Commits (10dc48b74d1cd9da9ffc59438bff85f0d6a11ad2)

Author SHA1 Message Date
Felix Yan e8c4855cd3
Allow random 1.2
Builds fine and all tests pass here.
2020-12-16 01:51:33 +08:00
Taylor Fausak a13ad1b9da Version 0.13.1.0 2020-12-11 11:40:48 -05:00
Taylor Fausak 1b74b4274c Version 0.13.0.0 2020-12-09 21:56:28 -05:00
Taylor Fausak e36d9bc465 Drop support for GHC 8.4 2020-11-15 12:55:50 -05:00
Taylor Fausak 259c949211 Drop support for GHC 8.2 2020-11-15 12:55:50 -05:00
Taylor Fausak 096c438b23 Drop support for GHC 8.0 2020-11-15 12:55:50 -05:00
Taylor Fausak cf3bc5daf4 Allow strict 0.4 2020-11-15 12:55:50 -05:00
jneira 17d07edb0a Relax upper bounds to include updated packages 2020-11-15 12:55:50 -05:00
Taylor Fausak b960a3f4ac Version 0.12.2.0 2020-11-15 12:44:05 -05:00
Joe Kachmar 9b8ed90a8f
Allows aeson-1.5.* 2020-07-20 22:44:02 -04:00
Soares Chen 2da8bd5e74 Revert change to cabal version 2020-05-06 13:38:48 +02:00
Soares Chen 8778dcf2f4 Create Main module for Brittany 2020-04-06 12:03:46 +00:00
Lennart Spitzner 9aad31809f Merge branch 'release' 2020-03-15 22:55:29 +01:00
Neil Mitchell 231c2f5e94 Permit extra-1.7 2020-03-15 22:52:36 +01:00
Lennart Spitzner 5895f954bd Remove dependency on neat-interpolation 2020-02-04 16:14:38 +01:00
Lennart Spitzner f4cff441e2 Merge branch 'release' 2020-02-04 14:12:44 +01:00
Lennart Spitzner f80e777163 Allow neat-interpolation-0.4.* 2020-02-04 14:11:45 +01:00
Lennart Spitzner 434854f8f3
Merge pull request #259 from eborden/datadecl
Data declaration for newtype and records
2019-12-09 22:46:03 +01:00
Lennart Spitzner 172866755c Start impl. layouting for datatypes (#12)
Only newtypes work for now; the "interesting" data records
are not touched yet.

Comment insertion not really considered yet; probably needs work.
2019-12-09 11:17:31 -07:00
Lennart Spitzner f8892d41d4 Bump to 0.12.1.1; Update changelog 2019-12-09 13:38:26 +01:00
Lennart Spitzner 3482f6a36d Bump semigroups dependency bound 2019-09-29 18:24:13 +02:00
Lennart Spitzner b656b8cc27 Bump to 0.12.1.0; Update changelog 2019-09-29 18:19:48 +02:00
Lennart Spitzner a98d643a62 Disable perf test by default via new cabal flag 2019-09-29 14:08:27 +02:00
Lennart Spitzner 91d6e18aba Adapt to ghc-8.8 (deps are not ready though) 2019-09-02 17:04:44 +02:00
Lennart Spitzner b2d8a1ed51 Bump to 0.12.0.0, Update copyright, readme, changelog 2019-06-17 10:54:33 +02:00
Lennart Spitzner b95bc09a9d Bump upper bound to hspec<2.8 2019-06-12 12:58:08 +02:00
Lennart Spitzner 3e1938aa7f Merge branch 'master' into stack-13.14-compat
# Conflicts:
#	brittany.cabal
2019-06-05 22:54:18 +02:00
Alan Zimmerman d161648f24 Allow ghc-exactprint-0.6.1 2019-06-02 22:53:00 +02:00
Tej Chajed ffc1e6918c
Add stack configuration for GHC 8.6 2019-05-31 17:00:38 -04:00
Lennart Spitzner 784e4d0aed Fix prelude.inc handling in .cabal to make new-install work
Hopefully fixes both #162 and #200.
2018-11-30 00:18:54 +01:00
Lennart Spitzner 34735e27ef Add compat with GHC-8.6 API 2018-11-04 22:14:00 +01:00
Lennart Spitzner 11dc30fbe1 Fix travis setup once more 2018-10-13 23:57:37 +02:00
Sergey Vinokurov 9d7cecaa92
Run tests in prallel 2018-09-17 23:54:56 +01:00
Lennart Spitzner 393258036f Bump bounds to ghc-exactprint-0.5.8 to include pkg-env innoculation 2018-09-13 22:09:12 +02:00
Alan Zimmerman 989364093c Allow ghc-exactprint 0.5.7.1 2018-09-12 22:01:43 +02:00
Adam Bergmark 5ed4612107 Allow aeson 1.4.* 2018-06-18 03:14:39 +02:00
Lennart Spitzner f5b5fe9f74 Bump aeson upper bound 2018-05-10 17:52:15 +02:00
Lennart Spitzner 03fd81f851 Update Readme and copyright dates
[ci skip]
2018-05-01 17:13:45 +02:00
Lennart Spitzner 031df539b3 Prepare release (bump to 0.11.0.0, changelog) 2018-05-01 17:09:31 +02:00
Lennart Spitzner a237e591b2 Implement `--obfuscate`
Support replacing all (non-keyword) identifiers with
randomly generated characters
2018-04-24 00:47:50 +02:00
Lennart Spitzner 280b70f6bd Undo adding -j ghc-option in brittany.cabal 2018-04-19 18:08:07 +02:00
Lennart Spitzner 1fc007591c Merge branch 'master' into inlineconfig
# Conflicts:
#	src/Language/Haskell/Brittany/Internal.hs
2018-04-17 20:05:33 +02:00
Lennart Spitzner e559a2cbf7 Implement inline configuration
e.g. "-- brittany --indent=4"

respects the following comment forms as input:

  source comment                       affected target
  ======================================================
  "-- brittany CONFIG"                 whole module
  "-- brittany-next-binding CONFIG"    next binding
  "-- brittany-disable-next-binding"   next binding
  "-- brittany @ myExampleFunc CONFIG" `myExampleFunc`

multiline-comments are supported too, although
the specification must still be a single line. E.g.

  "{- brittany --columns 50 -}"

CONFIG is either:

  1) one or more flags in the form of what brittany accepts
     on the commandline, e.g. "-- columns 50", or
  2) one or more specifications in the form of what brittany
     accepts in its config files for the layouting config
     (a one-line yaml document), e.g. "{ lconfig_cols: 50 }"

see #30
2018-04-17 20:04:40 +02:00
Lennart Spitzner 10e1c19788 Add support for ghc-8.4 2018-04-17 17:50:41 +02:00
Lennart Spitzner 3785d15c2a Bump some upper bounds, Remove unneeded dep 2018-04-17 16:53:33 +02:00
Lennart Spitzner ae162403ae Support multistate-0.9 (ghc-8.4 preparation) 2018-04-13 22:13:15 +02:00
Lennart Spitzner 21ef8b296c Adapt for czipwith-1.0.1.0 2018-04-05 21:06:44 +02:00
Sergey Vinokurov 7ffa58976f
Clean up duplicate ghc-options from cabal file 2018-04-03 22:55:57 +01:00
Lennart Spitzner b219a23684 Fix warning about brittany.cabal (cabal-version-specification) 2018-04-02 16:35:28 +02:00
Lennart Spitzner 3b20d0275e Bump to 0.10.0.0, Add Changelog 2018-03-23 19:32:30 +01:00
Lennart Spitzner f1536b8966 Merge pull request #83/#124 from sniperrifle2004/import 2018-03-21 01:06:26 +01:00
Lennart Spitzner 41a60ce60f Merge branch 'master' into import 2018-03-11 17:43:16 +01:00
alexeyraga 83b39de3d4 Expose readConfigs 2018-03-07 21:56:52 +11:00
Lennart Spitzner bac69ba54f Bump to 0.9.0.1, Add changelog 2018-02-14 17:18:22 +01:00
Lennart Spitzner 81928ea597 Switch to ghc-exactprint-0.5.6.0, Remove code duplication 2018-02-14 01:14:24 +01:00
Lennart Spitzner 8430b74b1a Switch to butcher-1.3, Improve help layout, fixes #103 2018-02-13 20:05:48 +01:00
Lennart Spitzner 0f3ee76944 Fix shebang handling with stdin input
Fixes #92
probably should update upstream (ghc-exactprint)
2017-12-27 23:26:18 +01:00
sniperrifle2004 ee9abff9e8 Add import and module support 2017-12-17 12:51:04 +01:00
Lennart Spitzner 4ded834a97 Clean-up cabal file: Remove development flag 2017-12-08 21:14:35 +01:00
Lennart Spitzner 16d5116193 Bump to 0.9.0.0 2017-12-08 21:11:39 +01:00
Lennart Spitzner c709513209 Remove dependency on either package
Following the deprecation and removal of the EitherT transformer
2017-11-27 18:11:49 +01:00
d-dorazio f21c6b6eac rework the cli interface 2017-10-03 23:32:36 +02:00
Lennart Spitzner a0112524aa Split up littests input into multiple files
*.blt instead of just tests.blt

yay for unix-style for ordering the inputs "15-regression.blt"
2017-10-02 20:53:56 +02:00
Lennart Spitzner 5a12b63035 Adapt travis script to improve build times 2017-09-29 21:42:39 +02:00
Alan Zimmerman 32a193f0ce Allow extra-1.6 2017-09-04 00:42:49 +02:00
Lennart Spitzner 6f4eec245e Split up Config/Types.hs
for the compilation of that module, GHC max residency
was an astounding 600MB for Config/Types.hs;
for Config/Types/Instances.hs it now "only" is 480MB.
(numbers according to "+RTS -s", the real usage
accoding to `time` is about 20% higher even.)
2017-08-15 20:37:46 +02:00
Lennart Spitzner 3ac8cccb0f Refactor prelude.inc/Prelude to reduce imports 2017-08-12 23:51:07 +02:00
Lennart Spitzner b39997fcfa Adapt for ghc-8.2
Could it be so simple?
2017-08-05 18:17:49 +02:00
Lennart Spitzner 6da000f872 Fix package description formatting 2017-08-04 15:02:43 +02:00
Lennart Spitzner f3787be410 Add tests.blt in source dist (extra-source-files) 2017-08-04 12:27:20 +02:00
Lennart Spitzner 5ff38c1eca Update stack resolver to lts-9.0; Bump syb dep bound 2017-08-04 12:15:49 +02:00
Lennart Spitzner 67e99d3034 Add README.md and doc/implementation/*.md to sdist 2017-08-04 10:58:32 +02:00
Lennart Spitzner 7962e196d5 Fix cabal/package/building warnings 2017-08-03 22:24:06 +02:00
Lennart Spitzner 494a06e2a8 Update maintainer email address 2017-08-03 22:15:35 +02:00
Lennart Spitzner 2f52bcdca9 Bump to 0.8.0.2; Update changelog 2017-08-03 21:26:34 +02:00
Lennart Spitzner 9f4cda9130 Add license (AGPLv3) 2017-06-03 18:23:03 +02:00
Lennart Spitzner 91429ccacc Remove unordered-containers direct dependency 2017-06-03 18:23:03 +02:00
Lennart Spitzner bdc85eb744 Expose module Paths_brittany 2017-06-03 18:23:03 +02:00
Lennart Spitzner 72b8817f32 Add testsuite for the library interface 2017-06-03 18:23:03 +02:00
Lennart Spitzner 135460622f Bump to 0.8.0.1; Add changelog 2017-06-03 18:22:59 +02:00
Lennart Spitzner f350113f7f Refactor all modules: +Internal; Add public Brittany module 2017-05-22 21:25:08 +02:00
Lennart Spitzner 5dbe0f2c9c Add function pureModuleTransform 2017-05-22 21:06:02 +02:00
Lennart Spitzner 2dfa691f9e Rename /docs -> /doc 2017-05-22 16:51:49 +02:00
Lennart Spitzner 3957272c10 Improve backwards-compat for config (manual FromJson) 2017-05-22 15:45:14 +02:00
Lennart Spitzner 296629b96c Update README.md (installation); Fix copyright notice 2017-05-17 23:31:20 +02:00
Lennart Spitzner 07164b39dc Clean up .cabal file and stack.yaml
(all deps are now on hackage in appropriate form)
2017-05-17 21:28:20 +02:00
Lennart Spitzner 68e77c9337 Fixup for czipwith and Update stack.yaml 2017-05-14 19:32:31 +02:00
Lennart Spitzner 41a86b2eab Use czipwith package (replacing CZip), Refactor slightly 2017-05-14 17:04:58 +02:00
Lennart Spitzner 4770dbdb7c Remove lens dependency (was not used) 2017-05-14 12:05:19 +02:00
Lennart Spitzner 2b30d83fe8 Fix CPP/macro usage for MacOS; Fix minor stuff in .cabal 2017-03-27 16:18:14 +02:00
Tuncer Ayaz 94e0ab1d5a Fix build by bumping directory upper bound 2017-02-11 22:45:39 +01:00
Lennart Spitzner bc70eb07e8 Change config setup(!), Refactor, Update deps
- config now uses foo_bar instead of _foo_bar;
- config now will accept missing keys;
- use latest butcher version;
- improve identity testing by moving into separate file.
2017-01-31 18:43:16 +01:00
Lennart Spitzner 508780466c Adapt for butcher-0.2.0.0 2016-10-01 19:06:55 +02:00
Lennart Spitzner eda83416b4 Bump to 0.7.1.0 2016-09-06 15:29:13 +02:00
Lennart Spitzner eead525c16 Bump to 0.7.0.0 2016-09-04 14:24:19 +02:00
Lennart Spitzner 7792cd77bf Minor fixes to brittany.cabal 2016-09-04 14:24:19 +02:00
Lennart Spitzner a29836d09c Refactor module structure; Clean up imports 2016-09-04 00:24:20 +02:00
Lennart Spitzner 3924f83f53 Bump to 0.6.0.0 2016-08-12 15:01:15 +02:00
Lennart Spitzner d444c6e386 Add check of syntactic validity of output 2016-08-12 15:01:15 +02:00
Lennart Spitzner 768b61c42c Bump to 0.5.0.0 2016-08-08 17:59:29 +02:00