Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumieval/nomoduleprefices
Omit top-level module prefices
https://github.com/fumieval/nomoduleprefices
Last synced: 23 days ago
JSON representation
Omit top-level module prefices
- Host: GitHub
- URL: https://github.com/fumieval/nomoduleprefices
- Owner: fumieval
- Created: 2020-08-04T13:38:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T05:59:31.000Z (over 4 years ago)
- Last Synced: 2024-10-15T06:50:54.405Z (2 months ago)
- Language: Haskell
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
NoModulePrefices
====This package provides a GHC plugin which transforms module names so that you don't have to write top-level module prefices (e.g. Control, Data, System) yourselves.
To enable the plugin, pass the following flags to GHC:
```
-fplugin=NoModulePrefices -fplugin-opt=NoModulePrefices:https://raw.githubusercontent.com/fumieval/NoModulePrefices/c07381d49c1c8d617850c5ef0352ea5bcb9a8422/default.yaml@c8982f3bc53c6a4b5bc76d81f151a8379135de657e43c3c04d191eacdcc83dca
```The mapping from short names to canonical names can be configured via a YAML document. The plugin fetches a YAML document via HTTP, validates its SHA256 and store it to the XDG cache directory.
Known issues
----Non-existent module imports in a source file seems to cause unnecessary recompilation.
```
[1 of 6] Compiling Lib.Component ( src\Lib\Component.hs, C:\Users\fumieval\hs\dcg\dist-newstyle\build\x86_64-windows\ghc-8.10.1\dcg-yurudora-0\x\dcg-yurudora\build\dcg-yurudora\dcg-yurudora-tmp\Lib\Component.o ) [Functor.Identity changed]
[3 of 6] Compiling Model ( src\Model.hs, C:\Users\fumieval\hs\dcg\dist-newstyle\build\x86_64-windows\ghc-8.10.1\dcg-yurudora-0\x\dcg-yurudora\build\dcg-yurudora\dcg-yurudora-tmp\Model.o ) [Monad.Random changed]
```