Commit Graph

70 Commits (a237e591b28b521dedeb0a6fe2ace1fd7ab60501)

Author SHA1 Message Date
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