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: Functor fmap: how to (Imants Cekusins)
----------------------------------------------------------------------
Message: 1
Date: Fri, 26 Jun 2015 13:21:51 +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] Functor fmap: how to
Message-ID:
<CAP1qina4sNbb=ekxaxgkbbt-btn8ytvfhqmus_yfsdpo-yg...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
.. and an a -> b version:
module FunctorIOab where
{-
usage:
*FunctorIOab> main
{type something, <enter>}
-}
processAb:: String -> Int
processAb = length
main::IO Int
main = func getLine
func::IO String -> IO Int
func ios = processAb <$> ios
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 84, Issue 45
*****************************************