Re: [Haskell-cafe] Suppressing HLint on pattern match of files

2013-10-11 Thread Dag Odenhall
> > > On 10 October 2013 at 14:05:45, Dag Odenhall > (dag.odenh...@gmail.com) > wrote: > > Is that actually from HLint though? I think that comes from GHC with > -Wall and can be disabled with -fno-warn-missing-signatures. > > > On Thu, Oct 10, 2013 at 7:50 AM, Graham

Re: [Haskell-cafe] Suppressing HLint on pattern match of files

2013-10-10 Thread Dag Odenhall
Is that actually from HLint though? I think that comes from GHC with -Walland can be disabled with -fno-warn-missing-signatures. On Thu, Oct 10, 2013 at 7:50 AM, Graham Berks wrote: > Hi, would like to disable 'Top-level binding with no type signature' > > In my test modules that are prefixed w

Re: [Haskell-cafe] ANN: E-book version of the Typeclassopedia

2013-10-04 Thread Dag Odenhall
That's great — thank you! On Fri, Oct 4, 2013 at 3:13 PM, Erlend Hamberg wrote: > While re-reading Brent Yorgey's Excellent Typeclassopedia I converted it > to Pandoc Markdown in order to be able to create an EPUB version. Having > a “real” e-book meant that I could comfortably read it on my e-

Re: [Haskell-cafe] Fwd: MVar problem in acid-state?

2013-09-03 Thread Dag Odenhall
It's conceivable. It might help if you list what version of acid-stateyou're using and what parts of it. And maybe file a bug upstream even if you're not sure it is acid-state. On Mon, Sep 2, 2013 at 7:35 PM, Corentin Dupont wrote: > Hi the list,

Re: [Haskell-cafe] reasons why Template Haskell does not propose something similar to Python exec() or eval()

2013-08-25 Thread Dag Odenhall
There's a proposalfor adding a proper Haskell QuasiQuoter as part of template-haskell. Until then, as others have noted your best option is the haskell-src-meta package, but be aware that this uses a separate

Re: [Haskell-cafe] ANNOUNCE: haskell-src-exts 1.14.0

2013-08-20 Thread Dag Odenhall
g/packages/archive/haskell-src-exts/1.13.5/doc/html/Language-Haskell-Exts-Parser.html#t:ParseMode > On 20 Aug 2013 12:57, "Dag Odenhall" wrote: > >> Good stuff! >> >> Is there any way, or plans for a way, to parse a file based on its >> LANGUAGE pragmas? Last I

Re: [Haskell-cafe] ANNOUNCE: haskell-src-exts 1.14.0

2013-08-20 Thread Dag Odenhall
Well if you enable TemplateHaskell then code like foo$bar gets a new meaning and if you enable Arrows then proc is a reserved keyword, etc etc. On Tue, Aug 20, 2013 at 1:06 PM, Mateusz Kowalczyk wrote: > On 20/08/13 11:56, Dag Odenhall wrote: > > Good stuff! > > > > Is th

Re: [Haskell-cafe] ANNOUNCE: haskell-src-exts 1.14.0

2013-08-20 Thread Dag Odenhall
Good stuff! Is there any way, or plans for a way, to parse a file based on its LANGUAGE pragmas? Last I checked e.g. HSP simply enabled all extensions when parsing, which can cause code to be parsed incorrectly in some cases. On Tue, Aug 20, 2013 at 10:15 AM, Niklas Broberg wrote: > Fellow Hask

Re: [Haskell-cafe] Does exist something like "data-files" in Cabal, which works at compile time?

2013-08-16 Thread Dag Odenhall
You want extra-source-files. They'll be included in the tarball, and cabal always builds from the root of the package, so you can safely use relative paths. On Fri, Aug 16, 2013 at 11:58 AM, Alfredo Di Napoli < alfredo.dinap...@gmail.com> wrote: > Hello guys, > > I'm pretty sure the answer is "n

Re: [Haskell-cafe] Alternative name for return

2013-08-15 Thread Dag Odenhall
I particularly like she's (her?) syntax for Alternative. Not sure whether or not Idris has that. Applicative tuples would be nice too, something like (|a,b,c|) translating to liftA3 (,,) a b c. And operators too, liftA2 (+) a b as (| a + b |)? On Thu, Aug 15, 2013 at 11:08 AM, Erik Hesselink wrot

Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-18 Thread Dag Odenhall
On Tue, 2012-01-17 at 22:05 +0300, dokondr wrote: > On Tue, Jan 17, 2012 at 6:42 PM, John Lenz wrote: > > > > > HTML5 Canvas is great for charts. If you go this route you might as well > > use a library which draws charts for you instead of writing all this code > > yourself. > > > > Personally,