On Mon, Jul 01, 2013 at 09:48:42AM +0200, Joachim Breitner wrote:
SNIP
I found https://github.com/jaspervdj/stylish-haskell/ (found via
http://stackoverflow.com/q/6870148/946226) which formats just some very
few aspects of Haskell. Does anyone have a more complete solution? Or is
interested
On Mon, Jul 01, 2013 at 05:18:39PM +1200, Richard A. O'Keefe wrote:
It looked pretty explicit to me:
The golden rule of indentation
...
you will do fairly well if you just remember a single rule:
Code which is part of some expression should be indented
further
On Sun, Jun 30, 2013 at 07:53:08PM -0400, Richard Cobbe wrote:
Two questions:
And what I've concluded by reading this thread:
1) Are there wide-spread conventions in the Haskell community for how to
indent an application expression that's split across multiple lines?
Well, there's general
I hope I'm not starting a holy war with this, but I'm curious about an
aspect of coding style that's been bugging me for a while, and I'm not
finding much discussion of this question on the web or in the mailing list
archives.
Two questions:
1) Are there wide-spread conventions in the Haskell
On Sun, Jun 30, 2013 at 05:41:46PM -0700, Darren Grant wrote:
Hi Richard,
This page helped me when starting out:
http://en.wikibooks.org/wiki/Haskell/Indentation
On 2013-06-30 4:55 PM, Richard Cobbe co...@ccs.neu.edu wrote:
snip
1) Are there wide-spread conventions in the Haskell
I'm not able to access the cabal manual today: links to my local copy and
links to the copy at haskell.org result in a 404.
I'm running the Haskell Platform, 2012.4.0.0, 64-bit, OS X 10.8.2. On my
first attempt this morning, I loaded file:///Library/Haskell/doc/start.html
in my browser and
On Sun, Jan 27, 2013 at 03:47:38PM -0200, Felipe Almeida Lessa wrote:
Do you mean the Cabal User Guide?
http://www.haskell.org/cabal/users-guide/
Yes, that's it, and I'm in the process of downloading a copy now (so I can
work without a WiFi connection).
I'm still curious about why there's a
On Sun, Jan 27, 2013 at 01:48:06PM -0500, Richard Cobbe wrote:
On Sun, Jan 27, 2013 at 03:47:38PM -0200, Felipe Almeida Lessa wrote:
Do you mean the Cabal User Guide?
http://www.haskell.org/cabal/users-guide/
Yes, that's it, and I'm in the process of downloading a copy now (so I can
work
Haskell Platform 2012 v2.0.0, MacOS 64-bit. (MacOS 10.8.2.)
I just used cabal to upgrade the installation of a local package I'm
writing, and I'm still seeing the old version of the documentation in
~/Library/Haskell/doc/index.html. How can I fix this?
In more detail: this machine had
On Sat, Nov 24, 2012 at 08:37:31PM +0200, Roman Cheplyaka wrote:
This is filed as https://github.com/haskell/cabal/issues/1051
Ah! Thanks for the pointer; I didn't know about that bug database. I'll
watch that issue for further developments.
* Richard Cobbe co...@ccs.neu.edu [2012-11-24 12
On Mon, Jul 30, 2012 at 11:45:38PM +1000, Ivan Lazar Miljenovic wrote:
On 30 July 2012 04:04, Richard Cobbe co...@ccs.neu.edu wrote:
I'm working on an application that involves processing a lot of Unicode
data, and I'm finding the built-in Show implementation for Char to be
really
On Tue, Jul 31, 2012 at 09:17:34PM +1000, Ivan Lazar Miljenovic wrote:
On 31 July 2012 21:01, Richard Cobbe co...@ccs.neu.edu wrote:
On Mon, Jul 30, 2012 at 11:45:38PM +1000, Ivan Lazar Miljenovic wrote:
Can I ask what you're doing here? Are you printing individual
characters or entire
I'm working on an application that involves processing a lot of Unicode
data, and I'm finding the built-in Show implementation for Char to be
really inconvenient. Specifically, it renders all characters at U+0080 and
above with decimal escapes:
Prelude '\x80'
'\128'
This is annoying
: = 1.2
Author: Richard Cobbe
Synopsis: Sample cabal package for HUnit integration
Build-Type: Simple
Library
Exposed-Modules:
Foo,
Foo.Parser,
Foo.Show
Build-Depends:
base = 4.3.1.0 5,
parsec = 3.1.2
On Thu, Jul 05, 2012 at 04:17:33PM +0200, Simon Hengel wrote:
First: the web page I cite above describes the interface that the test
binary must support to work with cabal, specifically w.r.t. the binary's
exit code. Your test suites likely already fit this model. However, if
you are
I'm starting to play around with GHC's support for view patterns, and I'm
running into what appears to be an annoying limitation of the
implementation.
GHC 7.0.3 (32-bit), MacOS 10.6.8.
First module; defines an abstract type provides a (trivial) view for it.
module Term(Term, TermView(..),
I'm trying to sort a list of Text values using a collator obtained from the
Text.Data.ICU.Collate module in the text-icu package on Hackage.
Unfortunately, I can't use the normal Data.List.sortBy function with one of
these collators, because the collators return (IO Ordering), not Ordering.
It's
On Mon, Sep 19, 2011 at 04:29:03PM +0300, Michael Snoyman wrote:
On Mon, Sep 19, 2011 at 4:26 PM, Richard Cobbe co...@ccs.neu.edu wrote:
I'm trying to sort a list of Text values using a collator obtained from the
Text.Data.ICU.Collate module in the text-icu package on Hackage.
Unfortunately
On Thu, Apr 21, 2011 at 11:27:10PM -0500, Antoine Latter wrote:
2. Here's what I do for the paths situation:
In the package description, create a CPP option so you know you're
compiling via Cabal:
Cpp-options: -DCABAL
Then create a module to wrap around the autogenerated paths module,
On Thu, Apr 21, 2011 at 11:27:10PM -0500, Antoine Latter wrote:
1. A side note - using the 'cabal' command line tool is easier for
many tasks than 'runhaskell Setup'. In particular, it does a user
install by default.
Interesting -- didn't know that was possible. I didn't see that in the
Cabal
On Fri, Apr 22, 2011 at 09:23:32AM +0200, Max Rabkin wrote:
On Fri, Apr 22, 2011 at 03:46, Richard Cobbe co...@ccs.neu.edu wrote:
Unfortunately, that's not happening. Cabal is clearly generating the
module; I can see it in dist/build/autogen. But my copy is overriding the
autogenerated
I'm running Haskell Platform 2011.2.0.1 on a MacOS 10.6.7 machine (the
machine is 64-bit, but I'm running the 32-bit platform).
I'm writing an application for personal use, and I'd like to use Cabal to
package it up and handle installation. This way, when I'm working on the
program, I won't
I'm trying to see if I'm running the latest version of haskell-mode.el.
Unfortunately, the download link at the top of
http://www.haskell.org/haskellwiki/Haskell_mode_for_Emacs points to a
directory with nothing in it. Is there somewhere else I should be looking?
I tried sending email to the
On Sun, Mar 06, 2011 at 09:51:39PM +0200, Yitzchak Gale wrote:
Richard Cobbe wrote:
I'm trying to see if I'm running the latest version of haskell-mode.el.
Unfortunately, the download link at the top of
http://www.haskell.org/haskellwiki/Haskell_mode_for_Emacs points to a
directory
24 matches
Mail list logo