[Haskell-cafe] Formatting function types
Christopher Done
chrisdone at googlemail.com
Thu Dec 30 16:48:03 CET 2010
On 30 December 2010 15:44, Antoine Latter <aslatter at gmail.com> wrote:
> On Thu, Dec 30, 2010 at 8:33 AM, Lauri Alanko <la at iki.fi> wrote:
> > Even nowadays, Haddock deliberately generates the following layout for
> > long function types:
> >
> > openTempFile
> > :: FilePath
> > -> String
> > -> IO (FilePath, Handle)
> >
>
> Aesthetics is a funny thing. I prefer writing my type signatures
> arrow-first if they grow too long.
Me too:
fooBar :: Foo a
=> Bar a
-> Mu a
-> Zot ()
Though in Lisk I don't have to think much about this:
(:: foo-bar (=> ('foo a) (-> ('bar a) ('mu a) ('zot ()))))
(:: foo-bar
(=> ('foo a)
(-> ('bar a)
('mu a)
('zot ()))))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101230/3acb22e0/attachment.htm>
More information about the Haskell-Cafe
mailing list