I wonder that there is no Haskell TextMate Bundle. Macromates.com says that there was a bundle but it seems that it doesn't exists anymore. Are there any other ways to get Haskell Syntax Highlighting on TextMate?
-
1There has been a version on github for some time, but it seems the svn version was only killed in the last month http://permalink.gmane.org/gmane.editors.textmate.devel/14457 as have several others; there is evidently some new policy at work. (It's a strange idea, if they are keeping the svn respository for other things, since Haskell is the example the Manual uses for 'installing new bundles' via svn.) – applicative Jan 04 '11 at 04:28
4 Answers
If you've got git installed, go into terminal and enter
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone https://github.com/textmate/haskell.tmbundle.git
Then in TextMate, Bundles > Bundle Editor > Reload Bundles.
The syntax highlighter isn't perfect but usable. It gets confused on some comments and identifiers. I hacked it a little to fix it.

- 7
- 2

- 1,168
- 9
- 15
-
1Thanks, that worked just fine. One thing though, maybe you should indicate this is ~/Library, not /Library. – Jan 04 '13 at 09:51
Seems like the Bundles location changed, so I did
cd /Applications/TextMate.app/Contents/SharedSupport/Bundles
Apart from that I did as mentioned by Jason (git repo still works).
Or maybe I am wrong and you can just create that folder as in:
mkdir -p /Library/Application\ Support/TextMate/Bundles
(did not try doing that though, but saw it on another installation instruction -git bundle-)
PS: I am new here and I could not find a way to comment on his post (maybe I don't have permission for that yet?)

- 470
- 6
- 7
I downloaded the zip from git:
https://github.com/textmate/haskell.tmbundle
Then I extracted it and renamed the folder to a .tmbundle
(it had some numeric suffix).
Then I just opened it in Finder and it was recognised and imported.

- 20,165
- 11
- 81
- 96