8

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?

masi
  • 83
  • 1
  • 3
  • 1
    There 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 Answers4

25

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.

Jason Reich
  • 1,168
  • 9
  • 15
  • 1
    Thanks, that worked just fine. One thing though, maybe you should indicate this is ~/Library, not /Library. –  Jan 04 '13 at 09:51
6

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?)

Gus Neves
  • 470
  • 6
  • 7
1

There seems to be some work done here but I cannot confirm how well it works.

KillerX
  • 1,436
  • 1
  • 15
  • 23
0

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.

Aram Kocharyan
  • 20,165
  • 11
  • 81
  • 96