Use brittany to format a document or selection(s) containing Haskell source code.
- See here for instructions on installation of Package Control
- In Sublime Text, search for package 'Brittany'
Clone this repository into Sublime Text 3/Packages using OS-appropriate location:
OSX:
git clone git://github.com/eddiejessup/Brittany.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Brittany
Windows:
git clone git://github.com/eddiejessup/Brittany.git "%APPDATA%\Sublime Text 3\Packages\Brittany"
Linux:
git clone git://github.com/eddiejessup/Brittany.git ~/.config/sublime-text-3/Packages/Brittany
Access commands via:
- Right-click menu item
Brittany - Menu item
Tools -> Brittany - Default keyboard shortcuts:
- Format:
⌘+k, t(OSX) orctrl+k, t(Linux and Windows)
- Format:
The commands work on a selection, multiple selections or if nothing is selected, the whole document.
The command brittany should be available from the terminal. Here are installation instructions for brittany itself.
MIT License