https://github.com/konn/cabal2ghci
A tool to automatically generate `.ghci` and `.stylish-haskell.yaml` file from `cabal` file.
https://github.com/konn/cabal2ghci
Last synced: 2 months ago
JSON representation
A tool to automatically generate `.ghci` and `.stylish-haskell.yaml` file from `cabal` file.
- Host: GitHub
- URL: https://github.com/konn/cabal2ghci
- Owner: konn
- License: other
- Created: 2012-12-31T14:05:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-10T17:00:46.000Z (almost 10 years ago)
- Last Synced: 2025-01-23T17:24:35.902Z (4 months ago)
- Language: Haskell
- Size: 114 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cabal2ghci
==============This is the tool to automatically generate `.ghci` file and `.stylish-haskell.yaml` file from `.cabal`. It processes following things:
* Language Pragmas
* hs-src-dirsInstallation
-------------
```
$ cabal install cabal2ghci
```Usage
------
```
$ cabal2ghci
$ cabal2ghci -c foo.cabal
$ cabal2ghci --nostylish
```Integration with [haskell-mode](https://github.com/haskell/haskell-mode)
-------------------------------------------------------------------------
```elisp
(add-hook 'haskell-mode-hook 'cabal2ghci-haskell-hook)
(defun my-before-save-hook ()
(ignore-errors (call-process "cabal2ghci")))(defun cabal2ghci-haskell-hook ()
(add-hook 'before-save-hook 'my-before-save-hook)
```