Haskell coding environment for windows users?
Max A . K .
max630@mail.ru
Tue, 13 Nov 2001 12:51:05 +0600
There is 'nearly vim' tags generator in the
<ghc-x>/ghc/utils/hstags. I said nearly because it has some
bugs. They are easy to fix, but it's still bad since can
only reconize a type signatures. So, if you make a module,
typedeclaring the exported thing in the beginning of the
file, it sees only this declaring and not the actual body.
fixes follows. In words, it made wrong count (2nd piece),
and noes not sort the output, and vim warning about that:
--- /home/max/tmp/ghc-5.02/ghc/utils/hasktags/HaskTags.hs Wed Aug 29 23:02:30 2001
+++ /home/max/test/haskell/HaskTags.hs Tue Nov 13 12:46:13 2001
@@ -17,17 +17,17 @@
main = do
filenames <- getArgs
foundthings <- mapM findthings filenames
- mapM_ (\x -> putStrLn $ dumpthing x) (concat foundthings)
+ mapM_ (\x -> putStrLn $ dumpthing x) (sort $ concat foundthings)
type FileName = String
type ThingName = String
data Pos = Pos FileName Int
- deriving Show
+ deriving (Show, Ord, Eq)
data FoundThing = FoundThing ThingName Pos
- deriving Show
+ deriving (Show, Ord, Eq)
dumpthing :: FoundThing -> String
dumpthing (FoundThing name (Pos filename line)) =
@@ -43,7 +43,7 @@
let aslines = lines text
let wordlines = map words aslines
let nocoms = map stripslcomments wordlines
- let tokens = concat $ zipWith (withline filename) nocoms $ ints 0
+ let tokens = concat $ zipWith (withline filename) nocoms $ ints 1
return $ findstuff tokens
withline :: FileName -> [String] -> Int -> [Token]
On Tue, Nov 13, 2001 at 03:08:58AM +0100, Jesper Louis Andersen wrote:
> On Fri, Nov 09, 2001 at 05:20:35PM +0530, Srineet wrote:
>> Hi,
>>
>> I am not sure whether this is the right place to ask this question. I want
>> to know what's the Haskell coding environment used by GHC users on
>> windows? What 's the preferred editor? Is there any Haskell tags for vim?
>
> There is. Vim 6.0 (at least) defines it into it's shared files
> (syntax/haskell.vim and syntax/lhaskell.vim). They work fine for me.
>
> It should pose no problem to provide syntax files for other editors with
> the Haskell Report in thy hands
>
> --
> Jesper
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe