Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 8 of 13
Nov 26, 2009 at 9:56 AMThank you Charles. The source code, available at the same link, is great. Now I understand why my code wasn´t running.
Regards
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 8 of 13
Nov 25, 2009 at 6:21 PMI also couldn't find the slides.
One of the links is this: http://www.comlab.ox.ac.uk/people/Richard.Bird/index.html
Another one is this: http://portal.acm.org/portal.cfm?coll=GUIDE&dl=GUIDE&CFID=63594272&CFTOKEN=61762843
Regards
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 8 of 13
Nov 24, 2009 at 7:40 PMHello, I've tried the following code with Hugs:
type Parser a = String -> [(a,String)]
item :: Parser Char
item = \inp -> case inp of
[] -> []
(x:xs) -> [(x,xs)]
return' :: a -> Parser a
return' v = \inp -> [(v,inp)]
p' :: Parser (Char,Char)
p' = do x <- item
z <- item
y <- item
return' (x,y)
It gives the following error:
Prelude>
p' "12345"ERROR file:{Hugs}\packages\hugsbase\Hugs.hs:94 - Type error in explicitly typed binding
*** Term : p'
*** Type : [Char] -> [(([(Char,[Char])],[(Char,[Char])]),[Char])]
*** Does not match : Parser (Char,Char)
Does anyone had this problem? Thanks in advance for any help.