[Haskell-cafe] Haskell mode for Emacs question

John A. De Goes john at n-brain.net
Fri Jan 23 12:52:09 EST 2009


No, Haskell support in the free version too. However, you'll have to  
add the tools to compile .hs files in the "Tools" menu. You can pipe  
the output to directly highlight errors/warnings in the document  
(which is what's done in the screenshot below), because the editor  
understands what GHC errors/warnings look like.

Regards,

John

http://www.n-brain.net    |    877-376-2724 x 101

On Jan 23, 2009, at 10:45 AM, Peter Verswyvelen wrote:

> looks like a neath editor. too bad on windows you don't get anti  
> aliased fonts (I guess it uses an old J2SE or something?)
>
> at first sight I was not able to find Haskell support in the freely  
> downloadable version. is this available in the commercial version?
>
>
> On Thu, Jan 22, 2009 at 6:50 PM, John A. De Goes <john at n-brain.net>  
> wrote:
>
> Not that you're looking to switch editors, but if you want something  
> a little more hassle-free:
>
>    http://www.n-brain.net/unashots/Haskell/ErrorHighlighting.png
>
> Regards,
>
> John
>
>
> On Jan 22, 2009, at 10:17 AM, Peter Verswyvelen wrote:
>
> I have a silly problem.
>
> I'm using Emacs with the Haskell mode extension on Windows
>
> I have a source file in say
>
> c:/foo/src/main.hs
>
> main.hs is importing some other modules in that same src directory
>
> When I invoke GHCi from within Emacs, the first thing it does is
>
> :cd c:/foo
>
> and then
>
> :load "src/main.hs"
>
> But of course GHCi won't find the imported modules now, since the  
> current directory is wrong.
>
> If I type in GHCi
>
> :cd src
> :load "main.hs"
>
> then it compiles fine.
>
> Does anyone have an idea why Emacs or the Haskell mode is switching  
> to the parent directory of src instead of src itself, and how to fix  
> this?
>
> Thanks a lot,
> Peter
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090123/8bbb69cf/attachment.htm


More information about the Haskell-Cafe mailing list