[Geany-devel] Default Snippets

Erik de Castro Lopo mle+tools at xxxxx
Thu Dec 1 04:37:52 UTC 2011


Lex Trotman wrote:

> Yes, Haskell do syntax is different,

Yes, agreed.

> do goes roughly where the : goes on a Python loop

Actually there are a number of syntactically valid ways to layout
a do. Here are two:

   functionName param = do
       x <- whatever

   functionName param
     = do   x <- whatever

Its the second one (and trying to place a <tab> after the 'do') 
which is causing the problems.

> and the rest is indented like Python,

Well lets just say Haskell used significant leading whitespace, like
Python.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Devel mailing list