0
comment
on 6/30/2015 8:21 AM
I'm going about my business dealing with option types thinking I finally have a good handle on monad usage within F# when suddenly I receive the following error. This expression was expected to have type int but here has type 'a option My first thought is that I've neglected to use let! but looking at my code the error is in a completely unexpected place. type MaybeBuilder() = member this.Bind(m, f) = Option.bind f m member this.Return(x) = Some x let maybe = new MaybeBuilder() type So[...]
>> Read the full article on reidev275.azurewebsites.net
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper