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: Ignore in import (Imants Cekusins)
2. Re: Ignore in import (Imants Cekusins)
3. Re: Ignore in import (Mike Houghton)
4. Re: Ignore in import (Imants Cekusins)
5. Re: Ignore in import (Petr V?penka)
6. Re: Ignore in import (Ryan Trinkle)
7. Re: Ignore in import (Mike Houghton)
----------------------------------------------------------------------
Message: 1
Date: Sat, 24 Oct 2015 15:13:32 +0200
From: Imants Cekusins <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Ignore in import
Message-ID:
<CAP1qinbyYs5wM=-owebx9nscxhoja5fjekjxvnllhbelswt...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
> Duplicate instance declarations:
it appears that there is (or was?) no way to hide instance definitions:
https://mail.haskell.org/pipermail/haskell-cafe/2009-July/063842.html
however looking at the exercise:
"... implement Functor instances for Either e, ((,) e), and
((->) e).?
does this not suggest
1) instance Functor Either e, ((,) e)
and
2) instance Functor Either e, ((->) e)
?
------------------------------
Message: 2
Date: Sat, 24 Oct 2015 15:16:56 +0200
From: Imants Cekusins <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Ignore in import
Message-ID:
<cap1qinaj3-qhxsf9bwasu2jcw72bj0t24vxgv8de4g49lfq...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
... or:
1) instance Functor Either e ((,) e)
2) instance Functor Either e ((->) e)
?
------------------------------
Message: 3
Date: Sat, 24 Oct 2015 14:35:19 +0100
From: Mike Houghton <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Ignore in import
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Mmmm
I think its functor for each of
Either e
((,) e)
and
((->) e)
?
> On 24 Oct 2015, at 14:16, Imants Cekusins <[email protected]> wrote:
>
> ... or:
>
> 1) instance Functor Either e ((,) e)
> 2) instance Functor Either e ((->) e)
>
> ?
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
Message: 4
Date: Sat, 24 Oct 2015 16:05:16 +0200
From: Imants Cekusins <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Ignore in import
Message-ID:
<cap1qinaktj8jpyr9rcmyzabbvr4n6aavgb5eyc0tycdjhgs...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
> I think its functor for each of ...
sorry, you are right.
well maybe it is possible with a non-ghc compiler?
------------------------------
Message: 5
Date: Sat, 24 Oct 2015 16:16:54 +0200
From: Petr V?penka <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Ignore in import
Message-ID:
<candmeueib7cb-hjaqyav9nzb_nfuvpdol55lwkrtrelwthk...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
You can try NoImplicitPrelude language extension (this may not work, too)
or use newtype wrappers or normal data types with the same shape.
Dne 24.10.2015 16:05 napsal u?ivatel "Imants Cekusins" <[email protected]>:
> > I think its functor for each of ...
>
> sorry, you are right.
>
> well maybe it is possible with a non-ghc compiler?
> _______________________________________________
> 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/20151024/2d1cb3f3/attachment-0001.html>
------------------------------
Message: 6
Date: Sat, 24 Oct 2015 11:25:16 -0400
From: Ryan Trinkle <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Ignore in import
Message-ID:
<cahnepiw9heh4_hs6g52u1ygoqhuctdhzwp08cpwfbuvqtoz...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
For the purpose of learning the material, it might be easiest to just write:
class MyFunctor f where
myFmap :: (a -> b) -> f a -> f b
and then create instances of that, instead.
This way, you won't have any conflicts with existing instances.
On Sat, Oct 24, 2015 at 10:16 AM, Petr V?penka <[email protected]>
wrote:
> You can try NoImplicitPrelude language extension (this may not work, too)
> or use newtype wrappers or normal data types with the same shape.
> Dne 24.10.2015 16:05 napsal u?ivatel "Imants Cekusins" <[email protected]>:
>
> > I think its functor for each of ...
>>
>> sorry, you are right.
>>
>> well maybe it is possible with a non-ghc compiler?
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>
> _______________________________________________
> 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/20151024/5e115d67/attachment-0001.html>
------------------------------
Message: 7
Date: Sat, 24 Oct 2015 17:13:59 +0100
From: Mike Houghton <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Ignore in import
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Yes! It?s obvious once its pointed out.
Thanks
> On 24 Oct 2015, at 16:25, Ryan Trinkle <[email protected]> wrote:
>
> For the purpose of learning the material, it might be easiest to just write:
>
> class MyFunctor f where
> myFmap :: (a -> b) -> f a -> f b
>
> and then create instances of that, instead.
>
> This way, you won't have any conflicts with existing instances.
>
> On Sat, Oct 24, 2015 at 10:16 AM, Petr V?penka <[email protected]
> <mailto:[email protected]>> wrote:
> You can try NoImplicitPrelude language extension (this may not work, too) or
> use newtype wrappers or normal data types with the same shape.
>
> Dne 24.10.2015 16:05 napsal u?ivatel "Imants Cekusins" <[email protected]
> <mailto:[email protected]>>:
>
> > I think its functor for each of ...
>
> sorry, you are right.
>
> well maybe it is possible with a non-ghc compiler?
> _______________________________________________
> Beginners mailing list
> [email protected] <mailto:[email protected]>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> <http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners>
>
> _______________________________________________
> Beginners mailing list
> [email protected] <mailto:[email protected]>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> <http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners>
>
>
> _______________________________________________
> 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/20151024/aad8f09b/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 88, Issue 22
*****************************************