I must be making some obvious mistake here,
but I'm not seeing it. The file name contains O-umlaut,
and the OS handles it fine, but ghci does not like it
(although it accepts umlauts in the contents of the file
(UTF-8) e.g., as a module name)
$ cat fÖÖbar.hs
main = print $ product [1..100]
$
On 28 March 2012 18:44, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote:
I must be making some obvious mistake here,
but I'm not seeing it. The file name contains O-umlaut,
and the OS handles it fine, but ghci does not like it
(although it accepts umlauts in the contents of the file
On 27/03/2012 08:56, rajendra prasad wrote:
Hi,
I am trying to load the DLL(Wrapper.dll) in my code(Main.hs). When I am
placing the dll in local directory, I am able to load it through
following command:
ghci Main.hs -L. -lWrapper
But, I am not able to load it if I am putting it in some
Hi,
I am using GHC version 7.0.4.
Thanks,
Rajendra
On Wed, Mar 28, 2012 at 2:09 PM, Simon Marlow marlo...@gmail.com wrote:
On 27/03/2012 08:56, rajendra prasad wrote:
Hi,
I am trying to load the DLL(Wrapper.dll) in my code(Main.hs). When I am
placing the dll in local directory, I am
I think the fix eventually made its way into 7.4.1. This is the patch:
http://hackage.haskell.org/trac/ghc/changeset/d146fdbbf8941a8344f0ec300e79dbeabc08d1ea
Cheers,
Simon
On 28/03/2012 09:57, rajendra prasad wrote:
Hi,
I am using GHC version 7.0.4.
Thanks,
Rajendra
On Wed,
Sorry, the text example again without HTML formatting:
test= runBackT $ do
lift $ print will not return back here
liftBackPoint $ print will return here
n2 - lift $ getLine
lift $ print second input
n3 - lift $ getLine
if n3 == back
Thank you very much for the quick reply.
Regards,
Rajendra
On Wed, Mar 28, 2012 at 2:35 PM, Simon Marlow marlo...@gmail.com wrote:
I think the fix eventually made its way into 7.4.1. This is the patch:
http://hackage.haskell.org/**trac/ghc/changeset/**
See ticket here: http://hackage.haskell.org/trac/summer-of-code/ticket/1620
== What? ==
The haskell-src-exts library (HSE) is very popular for manipulating Haskell
source code in a wide range of scenarios, such as (syntactic) preprocessors
(e.g. hsx), syntax highlighting, refactoring and code
There is the plot[1] library which provides for updateable plots from GHCi
REPL and has a gnuplot-like interface. I wrote it for this very reason, a
mathematics/statistics development environment.
It uses Data.Vector.Storable, which provides for compatability with both
statistics and
On Wed, Mar 28, 2012 at 11:49 AM, Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com wrote:
On 28 March 2012 18:44, Johannes Waldmann waldm...@imn.htwk-leipzig.de
wrote:
I must be making some obvious mistake here,
but I'm not seeing it. The file name contains O-umlaut,
and the OS handles it
Hi again,
I just submitted my proposal on the GSoC website. You can find it here:
http://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/florianhartwig/1
I would be very grateful if someone could read over it and tell me if
it makes sense and if/how it could be improved.
Cheers,
Fellow Haskelleers,
I'm pleased to announce the release of haskell-src-exts-1.13.0!
* On hackage: http://hackage.haskell.org/package/haskell-src-exts
* Via cabal: cabal install haskell-src-exts
* Darcs repo: http://code.haskell.org/haskell-src-exts
It's been a *very short* while since the last
Maybe this is a version of William Harrison's DebugT monad with
rollback, listed in his periodic table of effects?
http://www.cs.missouri.edu/~harrisonwl/Presentations/UIUCFM05.ppt
I've never seen a definition of the monad itself...
Hi Stephen:
It could be:
It performs a rollback indeed.
I guess that this monad can be used in something similar to
nonblocking (multilevel) transactions.
if GoBack is changed to Goback String, and a trace string is
added to each NoBack step, then each NoBack step could sum the traces
of all
Good: we have mapM, and we have forM ( = flip mapM ) .
Sure this is just a convenience, and indeed
forM xs $ \ x - do ... is quite handy,
especially if xs is really small,
and ... is some larger expression.
Bad: we have map, but we are missing: for ( = flip map ) .
The function is very
Similar proposal here:
http://www.reddit.com/r/haskell/comments/qy990/suggestion_for_flip_map/
It seems generally favorable. Might as well generalize it though and have
flip fmap.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Doesn't for already exist, in Data.Traversable? Except that for =
flip traverse.
http://www.haskell.org/hoogle/?hoogle=for
Cheers,
-Matthew
On Wed, Mar 28, 2012 at 3:58 PM, Johannes Waldmann
waldm...@imn.htwk-leipzig.de wrote:
Good: we have mapM, and we have forM ( = flip mapM ) .
Sure
On 28 March 2012 22:05, Matthew Steele mdste...@alum.mit.edu wrote:
Doesn't for already exist, in Data.Traversable? Except that for =
flip traverse.
Traverse doesn't fit the type of fmap, it demands an extra type constructor:
traverse :: (Traversable t,Applicative f) = (a - f b) - t a - f (t
On windows I have long used hugs under cygwin, but hugs
doesn't get along well with cygwin's latest terminal
emulator. So I switched to winhugs. Small problem
that looms big: how do you interrupt an interminable
expression evaluation in winhugs?
Doug
On 28 March 2012 21:05, Jurriaan Hage j.h...@uu.nl wrote:
Our first year students will be very unhappy to hear this.
Wait, what?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Wed, Mar 28, 2012 at 5:52 PM, dag.odenh...@gmail.com
dag.odenh...@gmail.com wrote:
Wait, what?
Perhaps they were assigned the task of updating haskell-src-exts code
to support Haskell2010? =)
--
Felipe.
___
Haskell-Cafe mailing list
I uninstalled ghc, removed my ~/.cabal directory, reinstalled ghc, then
tried to install snap. I get:
$ cabal install snap
Resolving dependencies...
Downloading syb-0.3.6...
command line: cannot satisfy -package Cabal-1.14.0:
Cabal-1.14.0-0338b6f52e6e6a56054371a110e1d79e is unusable due to
Think of traverse as a mapA, as it's just like Data.Traversable.mapM,
but with the Applicative class constraint instead of the Monad one.
I've always wondered why it isn't called this way, sequenceM equivalent for
Applicatives is sequenceA for instance.
Le 28 mars 2012 22:19, Christopher Done
It may come from the version of GHC you're using (Cabal version is fixed
for one specific GHC version).
Which one is it?
Le 28 mars 2012 23:05, Michael Iles michael.i...@ca.ibm.com a écrit :
I uninstalled ghc, removed my ~/.cabal directory, reinstalled ghc, then
tried to install snap. I get:
I'm using ghc 7.4.1 (from the Ubuntu Precise repository).
Don't know if this is relevant but ghc-pkg list tells me that I have:
/var/lib/ghc/package.conf.d
Cabal-1.14.0
directory-1.1.0.2
process-1.1.0.1
...
Mike.
From: Yves Parès yves.pa...@gmail.com
To: Michael
I would very much like to see a standard function for flip map along
these lines. I think it would make a lot of code more readable.
Like the OP, I use for in my own code. It's unfortunate that
Data.Traversable takes the name with another type. Two options would be
to (a) reuse the name in
On Wed, Mar 28, 2012 at 17:05, Michael Iles michael.i...@ca.ibm.com wrote:
I uninstalled ghc, removed my ~/.cabal directory, reinstalled ghc, then
tried to install snap. I get:
Did you also remove ~/.ghc? Libraries are actually installed and
registered there, not under ~/.cabal. Although
Did you install the haskell-platform package?
What is the output of ghc-pkg check?
On Wed, Mar 28, 2012 at 5:30 PM, Brandon Allbery allber...@gmail.comwrote:
On Wed, Mar 28, 2012 at 17:05, Michael Iles michael.i...@ca.ibm.comwrote:
I uninstalled ghc, removed my ~/.cabal directory,
Hey that fixed it! (Removing ~/.ghc.)
Thanks!
Mike.
From: Brandon Allbery allber...@gmail.com
To: Michael Iles/Ottawa/IBM@IBMCA
Cc: haskell-cafe@haskell.org
Date: 03/28/2012 06:32 PM
Subject:Re: [Haskell-cafe] Can't install snap (problem with syb)
On Wed, Mar 28,
On 12-03-28 06:30 PM, Brandon Allbery wrote:
Did you also remove ~/.ghc? Libraries are actually installed and
registered there, not under ~/.cabal.
Reality is less simplistic than that. .ghc has library metadata. .cabal
has library files. See my
http://www.vex.net/~trebla/haskell/sicp.xhtml
On Mar 28, 2012, at 4:19 PM, Christopher Done wrote:
On 28 March 2012 22:05, Matthew Steele mdste...@alum.mit.edu wrote:
Doesn't for already exist, in Data.Traversable? Except that for =
flip traverse.
Traverse doesn't fit the type of fmap, it demands an extra type
constructor:
Date: Tue, 27 Mar 2012 11:03:54 +1300
From: Richard O'Keefe o...@cs.otago.ac.nz
Subject: Re: [Haskell-cafe] adding the elements of two lists
To: jerzy.karczmarc...@unicaen.fr
Cc: haskell-cafe@haskell.org
And *that* is why I stopped trying to define instance Num t = Num [t].
If I KNEW that
Welcome to issue 220 of the HWN, an issue covering crowd-sourced bits
of information about Haskell from around the web. This issue covers the
week of March 18 to 24, 2012.
Quotes of the Week
* shachaf: Type classes are a scary story that you tell new
Haskellers so they can go to
On 29/03/2012, at 3:08 PM, Doug McIlroy wrote:
- without newtype
toSeries f = f : repeat 0 -- coerce scalar to series
instance Num a = Num [a] where
(f:fs) + (g:gs) = f+g : fs+gs
(f:fs') * gs@(g:gs') = f*g : fs'*gs + (toSeries f)*gs'
- with newtype
newtype Num
GHC already has a CAS primitive on MutVar#, it just needs to be extended
to MutableArray# and MutableByteArray# (at all of the bit-widths the CAS
instruction would support, e.g. see readWordXxArray# in
http://www.haskell.org/ghc/docs/latest/html/libraries/ghc-prim-0.2.0.0/GHC-Prim.html).
The
35 matches
Mail list logo