How to apply two functions on the same string without using ">>"

Posted by altair211 on Stack Overflow See other posts from Stack Overflow or by altair211
Published on 2010-03-29T18:29:31Z Indexed on 2010/03/29 18:33 UTC
Read the original article Hit count: 193

Filed under:

Hi, I am writing a function like this.

func :: IO()
func = putStr print "func = putStr print"

I know it is incorrect but the idea is I want the putStr applied to the string then print applied to the same string "fun = .." so that the output would be:

func = putStr print "func = putStr print"

which is the same as my function definition. Thanks

© Stack Overflow or respective owner

Related posts about haskell