On Tue, 27 Aug 2013, John Lato wrote:
[1] Most people are physically incapable of reading documents that explain why
what they want to do won't
work. Even if people did read the documentation, I suspect that the people
most in need of the information
would be the least likely to understand
On 27 Aug 2013, at 08:33, Niklas Hambüchen wrote:
@Malcolm, would you mind a change towards throwing an exception that is
different from error so that it can be easily caught, or even better, a
change from
runCpphs :: ... - IO String
to
runCpphs :: ... - IO (Either String
Let we have data in one module as this:
data Person = Person { personId :: Int, name :: String }
data Address a = Address { personId :: Int, address :: String , way ::
a}
It was discussed a lot in topics OverloadedRecordFields
This is an alternative:
Let we have polymorphic
On 29/08/13 00:43, Malcolm Wallace wrote:
Have you tried simply wrapping the call to runCpphs in a catch? Something
like
safeRunCpphs :: ... - IO (Either String String)
safeRunCpphs foo = fmap Right (runCpphs foo) `catch` (\(UserError s)-
Left s
Yes, that is what I'm doing at
Welcome to issue 278 of the HWN, an issue covering crowd-sourced bits
of information about Haskell from around the web. This issue covers the
week of August 18 to 24, 2013.
Quotes of the Week
* johnw: finger trees must be related to palm trees somehow
* monochrom: do, or undo. there is no
Greetings café,
There are some problems in Haddock to do with Template Haskell that I
believe are being caused by Cabal. These were apparently addressed in
1.18 which came out recently. ‘Great!’, I thought.
My problem is that I'm unsure how to use 1.18. I'm using GHC HEAD (well,
3 days old now)