Thanks Alberto!
I was able to derive MonadCatchIO for my stack and generalize my IO error
handling to:
{-# LANGUAGE FlexibleContexts #-}
import Prelude hiding (catch)
import Control.Monad.Error
import Control.Monad.State
import Control.Monad.CatchIO
import System.IO.Error (tryIOError)
import C
Hi!
The exception handling is a difficult thing. It is usually simple enough but
sometimes it can be very difficult, especially when using continuations within
the monadic computation. To feel it, I often remember how the exceptions are
handled in the F# async workflow (the sources are open), b
https://github.com/patperry/hs-monte-carlo/issues/9
On Thu, Jul 18, 2013 at 10:20 PM, Clark Gaebel wrote:
> Then I will. Going to double check on 7.6.3, first.
>
> Thanks for bringing this back to my attention. I forgot about it. :P
>
> Regards,
> - Clark
>
> On Thu, Jul 18, 2013 at 10:12 PM, N
Then I will. Going to double check on 7.6.3, first.
Thanks for bringing this back to my attention. I forgot about it. :P
Regards,
- Clark
On Thu, Jul 18, 2013 at 10:12 PM, Niklas Hambüchen wrote:
> Sounds like a Real Good Thing to do :)
>
> On Fri 19 Jul 2013 11:10:25 JST, Clark Gaebel wrote:
Sounds like a Real Good Thing to do :)
On Fri 19 Jul 2013 11:10:25 JST, Clark Gaebel wrote:
> No I haven't.
>
> - Clark
>
> On Thu, Jul 18, 2013 at 10:07 PM, Niklas Hambüchen wrote:
>> Did you file this as a bug?
>>
>> On Tue 23 Apr 2013 23:16:03 JST, Clark Gaebel wrote:
>>> I'm on 7.6.2, and i
No I haven't.
- Clark
On Thu, Jul 18, 2013 at 10:07 PM, Niklas Hambüchen wrote:
> Did you file this as a bug?
>
> On Tue 23 Apr 2013 23:16:03 JST, Clark Gaebel wrote:
>> I'm on 7.6.2, and it does. Oh no.
>>
>> - Clark
>>
>> On Tuesday, April 23, 2013, Tom Ellis wrote:
>>
>> On Tue, Apr 2
Did you file this as a bug?
On Tue 23 Apr 2013 23:16:03 JST, Clark Gaebel wrote:
> I'm on 7.6.2, and it does. Oh no.
>
> - Clark
>
> On Tuesday, April 23, 2013, Tom Ellis wrote:
>
> On Tue, Apr 23, 2013 at 09:36:04AM +0200, Petr Pudlák wrote:
> > I tested it on GHC 6.12.1, which wasn't a
The package haskell-src-exts is a lot less intimidating if all you are
trying to do is programmatically generate Haskell source:
http://hackage.haskell.org/package/haskell-src-exts
The base types are here:
http://hackage.haskell.org/packages/archive/haskell-src-exts/1.13.5/doc/html/Language-Haske
Hi Eric:
The pattern may be the MonadCatchIO class:
http://hackage.haskell.org/package/MonadCatchIO-transformers
2013/7/18 Eric Rasmussen
> Hello,
>
> I am writing a small application that uses a monad transformer stack, and
> I'm looking for advice on the best way to handle IO errors. Ideall
Hi!
2013/7/18 Erik Rantapaa
>
>
> I've been looking at the assembly code that ghc generates for simple
> pattern matching for situations like:
>
> foo :: Int -> Int
> foo 1 = 3
> foo 2 = 10
> foo 3 = 2
> foo 4 = 42
> -- ... other random assignments
>
> and I noticed that it doesn't seem to gene
Hi Greeg, All
I created a repository in gitHub with the necessary code for generating
execution traces in case of error:
https://github.com/agocorona/control-monad-supervisor/blob/master/Demos/TraceExample.hs
the code is
{-# OPTIONS -F -pgmF MonadLoc #-}
module Demos.TraceExample (
) where
impo
Hello,
I am writing a small application that uses a monad transformer stack, and
I'm looking for advice on the best way to handle IO errors. Ideally I'd
like to be able to perform an action (such as readFile
"file_that_does_not_exist"), catch the IOError, and then convert it to a
string error in M
I've been looking at the assembly code that ghc generates for simple pattern
matching for situations like:
foo :: Int -> Int
foo 1 = 3
foo 2 = 10
foo 3 = 2
foo 4 = 42
-- ... other random assignments
and I noticed that it doesn't seem to generate a jump table (or even a table
lookup) like, fo
L.S.,
It looks like the HaskellWiki images have disappeared; can anybody repair
this? (See for example
http://www.haskell.org/haskellwiki/Special:MostLinkedFiles )
Regards,
Henk-Jan van Tuyl
--
Folding@home
What if you could share your unused computer power to help find a cure? In
jus
Hoogle has returned to live, thanks to the efforts to the new
haskell.org admins.
Thanks, Neil
On Tue, Jul 16, 2013 at 4:33 PM, Neil Mitchell wrote:
> No idea why it has gone down, my guess is that the Apache rule that
> says treat it as a CGI script got changed to serve it as a file. In
> the m
Hi!
I dont know GHC API very well, but I want to generate AST of a program
using GHC API.
Is there any standard method to generate Haskell code out of it? (something
like "print_this_for_me_please" function? :D
___
Haskell-Cafe mailing list
Haskell-Cafe@h
Great, but how can we learn the API, when examples are not working? -.-
2013/7/18 Johan Tibell
> I filed a bug a while back:
>
> http://ghc.haskell.org/trac/ghc/ticket/7752
>
> Someone that understands the API needs to fix the doc. :)
>
> On Thu, Jul 18, 2013 at 7:58 PM, John Blackbox
> wr
I filed a bug a while back:
http://ghc.haskell.org/trac/ghc/ticket/7752
Someone that understands the API needs to fix the doc. :)
On Thu, Jul 18, 2013 at 7:58 PM, John Blackbox
wrote:
> Hi!
> Please take a look here: http://www.haskell.org/haskellwiki/GHC/As_a_library
> The examples are not
Hi!
Please take a look here: http://www.haskell.org/haskellwiki/GHC/As_a_library
The examples are not working. Even the simpelst one:
import GHC
import GHC.Paths ( libdir )
import DynFlags ( defaultLogAction )
main =
defaultErrorHandler defaultLogAction $ do
runGhc (Just libdir) $
Parallel Scientific, Inc. is a Boulder, CO based, funded startup company
with a presence around the globe, working in the cutting edge area of
scalable parallelization. We seek experienced Haskell programmers to build
a sophisticated, ultra-scalable high availability framework to be used in
conjun
Joerg Fritsch, Thu 2013-07-18 @ 19:22:46+0200:
> Can I easily fix the modifyIORef statement by swapping "something" ?
> --Joerg
Replace `shiftL` with `flip shiftL` and change the type signature of
`sLbitfield` to take an Int instead of an Integer.
signature.asc
Description: Digital signature
___
Can I easily fix the modifyIORef statement by swapping "something" ?
--Joerg
On Jul 18, 2013, at 7:19 PM, "Edward Z. Yang" wrote:
> shiftL has the wrong type: Bits a => a -> Int -> a
> so it is expecting the value in the IORef to be an Int.
>
> Edward
>
> Excerpts from Joerg Fritsch's message
shiftL has the wrong type: Bits a => a -> Int -> a
so it is expecting the value in the IORef to be an Int.
Edward
Excerpts from Joerg Fritsch's message of Thu Jul 18 10:08:22 -0700 2013:
> All, what is wrong w the below code?
>
> I get an type error related to the operation shiftL
>
> import D
All, what is wrong w the below code?
I get an type error related to the operation shiftL
import Data.Bits
import Data.Word
import Data.IORef
data Word32s = Word32s { x :: IORef Word32 }
bitfield :: Word32
bitfield = 0
mkbitfield :: Word32 -> IO Word32s
mkbitfield i = do the_bf <- newIORef i
On 17.07.2013 16:11, Brian Lewis wrote:
On 2013.07.17, at 08:03, Jan-Willem Maessen wrote:
This has all the marks of a 64-bit-only code running on a 32 bit
machine.
This discussion is interesting, but I'm not sure why so much of it is
taking place here instead of on the mwc-random issue tracke
No! This isn't more bikeshedding about notation.
It's a bit of Haskell archaeology.
> On Sun, Jun 30, 2013 at 2:59 AM, Judah Jacobson wrote:
[This isn't exactly what Judah wrote.]
> ...
>
> Instead of `x f` (to access field x of record f),
> maybe we could write `f{x}` as the record selection.
On 17.07.13 9:46 PM, Edward Kmett wrote:
FWIW, I maintain, according to wc and sloccount, 220841 lines worth of
Haskell code at present.
Thanks, this is great service to our community. And you produce
excellent quality!
I have been bitten this error one time, so it affects me .45% of t
27 matches
Mail list logo