[Haskell] vim syntax files for GHC-style .lhs, .hs + cpp

Donald Bruce Stewart dons at cse.unsw.edu.au
Tue Feb 10 08:37:34 EST 2004

> On Mon, Feb 09, 2004 at 12:56:43PM +1100, Donald Bruce Stewart wrote:
> > Hey all,
> > 
> >      -------------------------------------------------------------
> >         Vim syntax highlighting for GHC-style .lhs and .hs + cpp
> >      -------------------------------------------------------------
> > 
> > Rather than let this just sit on my hd, I'm making them available.
> > 
> >         ftp://ftp.cse.unsw.edu.au/pub/users/dons/vim/
> > 
> > These are vim syntax files for the tex-style (not the bird-feet style)
> > literate Haskell used in much of GHC, and for normal Haskell with -cpp
> > preprocessor sprinkles. The directories should go in your ~/.vim/
> > folder.
> I've put mine here: http://urchin.cipe/~ian/vim/
> They also use a simple heuristic to guess whether the non-Haskell stuff
> should be treated as TeX or just text, and cope with the Bird style. We
> really should send a best solution off to the vim guys to replace what's
> currently there.

Yes. I propose we combine them.

I'm too busy at the moment, but if someone out there wants to combine
the two, to create an uber-haskell.vim syntax highlighting that works
for .hs, .lhs (both tex and bird), .hsc and all with -cpp annotations,
this should be quite feasible, with Ian's and my code as a start.

They should work with anything you find in $fptools.

-- Don

More information about the Haskell mailing list