The Artima Developer Community
Sponsored Link

Monadic Design Patterns Forum
KMonad class syntax error

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic    
Flat View: This topic has 0 replies on 1 page
Eric Christeson

Posts: 1
Nickname: ejc
Registered: Aug, 2012

KMonad class syntax error Posted: Nov 2, 2012 1:18 AM
Reply to this message Reply
Advertisement
I'm working my way through Pre-Print version 1 and on page 72, the type lambda syntax of KMonad doesn't compile with scala 2.9.1 The correct syntax is:

class KMonad[R] extends BMonad[({type lambda[alpha] = KCtxt[R,alpha]})#lambda]

The book is missing {} surrounding the type lambda.

Thanks,
Eric

Topic: Update to the book Previous Topic    

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use