Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: AMQP and nested exception handlers (Alex)
2. how can I make this work (Roelof Wobben)
3. Re: how can I make this work (Alex Hammel)
4. Re: how can I make this work (Roelof Wobben)
5. Re: how can I make this work (Alex Hammel)
----------------------------------------------------------------------
Message: 1
Date: Tue, 12 May 2015 11:46:54 -0400
From: Alex <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] AMQP and nested exception handlers
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
On Tue, 12 May 2015 08:32:08 +0000
Alexey Shmalko <[email protected]> wrote:
> Seems you lack the proper instance of NFData for Foo
>
> instance NFData Foo where
> rnf f = foo f `deepseq` ()
>
> With this change, keeping either line produces outer exception.
>
Ah, as it turns out I was using deepseq 1.3, but the Generics support
wasn't available until 1.4. Upgrading to 1.4 solves the issue. Thank
you for your help!
--
Alex
------------------------------
Message: 2
Date: Tue, 12 May 2015 20:02:34 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] how can I make this work
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/0f3c939d/attachment-0001.html>
------------------------------
Message: 3
Date: Tue, 12 May 2015 18:11:11 +0000
From: Alex Hammel <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] how can I make this work
Message-ID:
<ca+_xferqxm4xyamaspujn6rmltndbesfesa54slps5k72nk...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
You're missing the parens around (x:yx) in the last clause.
On Tue, 12 May 2015 at 11:02 Roelof Wobben <[email protected]> wrote:
> Hello,
>
> I try to re implement ++
>
> So far I have this ;
>
> plusplus' :: [a] -> [a] -> [a]
> plusplus' [] (xs) = xs
> plusplus' [] [] = []
> plusplus' (xs) [] = xs
> plusplus' (x:xs) yx = plusplus' xs x:yx
>
> main = print . plusplus' $ [1,2] [3,4]
>
>
> But I still get this error message :
>
> src/Main.hs@5:23-5:37
> Couldn't match expected type
> a
> with actual type
> [a]
> a
> is a rigid type variable bound by the type signature for plusplus' :: [a]
> -> [a] -> [a] at
> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:1:14
> Relevant bindings include yx :: [a] (bound at
> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:18)
> xs :: [a] (bound at
> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:14)
> x :: a (bound at
> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:12)
> plusplus' :: [a] -> [a] -> [a] (bound at
> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:2:1)
> ?
>
>
>
>
>
> ------------------------------
> [image: Avast logo] <http://www.avast.com/>
>
> Dit e-mailbericht is gecontroleerd op virussen met Avast
> antivirussoftware.
> www.avast.com
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/4b0401cd/attachment-0001.html>
------------------------------
Message: 4
Date: Tue, 12 May 2015 20:16:06 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] how can I make this work
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/beef0e6d/attachment-0001.html>
------------------------------
Message: 5
Date: Tue, 12 May 2015 18:19:43 +0000
From: Alex Hammel <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] how can I make this work
Message-ID:
<ca+_xfepknh2o7ttkdq1ltcpiegojslkwxw5bujlstvmmtnk...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
The relevant part of that error message is this:
> The function ?[1, 2]? is applied to one argument, but its type
> [t0]
> has none
Which means that you're trying to call a list literal as though it were a
function (with one argument). Which probably means that you've got a ($)
out of place.
On Tue, 12 May 2015 at 11:16 Roelof Wobben <[email protected]> wrote:
> Thanks,
>
> Now I see the last error on the main line :
>
> src/Main.hs@7:28-7:39
> Couldn't match expected type ?[t1] -> [a0]? with actual type
> [t0]
> The function ?[1, 2]? is applied to one argument, but its type
> [t0]
> has none ? In the second argument of ?($)?, namely ?[1, 2] [3, 4]? In
> the expression: print . plusplus' $ [1, 2] [3, 4]
>
> Roelof
>
>
>
>
> Alex Hammel schreef op 12-5-2015 om 20:11:
>
> You're missing the parens around (x:yx) in the last clause.
>
> On Tue, 12 May 2015 at 11:02 Roelof Wobben <[email protected]> wrote:
>
>> Hello,
>>
>> I try to re implement ++
>>
>> So far I have this ;
>>
>> plusplus' :: [a] -> [a] -> [a]
>> plusplus' [] (xs) = xs
>> plusplus' [] [] = []
>> plusplus' (xs) [] = xs
>> plusplus' (x:xs) yx = plusplus' xs x:yx
>>
>> main = print . plusplus' $ [1,2] [3,4]
>>
>>
>> But I still get this error message :
>>
>> src/Main.hs@5:23-5:37
>> Couldn't match expected type
>> a
>> with actual type
>> [a]
>> a
>> is a rigid type variable bound by the type signature for plusplus' ::
>> [a] -> [a] -> [a] at
>> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:1:14
>> Relevant bindings include yx :: [a] (bound at
>> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:18)
>> xs :: [a] (bound at
>> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:14)
>> x :: a (bound at
>> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:5:12)
>> plusplus' :: [a] -> [a] -> [a] (bound at
>> /home/app/isolation-runner-work/projects/112825/session.207/src/src/Main.hs:2:1)
>> ?
>>
>>
>>
>>
>>
>> ------------------------------
>> [image: Avast logo] <http://www.avast.com/>
>>
>> Dit e-mailbericht is gecontroleerd op virussen met Avast
>> antivirussoftware.
>> www.avast.com
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>
>
> _______________________________________________
> Beginners mailing
> [email protected]http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
>
>
> ------------------------------
> [image: Avast logo] <http://www.avast.com/>
>
> Dit e-mailbericht is gecontroleerd op virussen met Avast
> antivirussoftware.
> www.avast.com
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/ef816dd6/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 83, Issue 23
*****************************************