jamwt/Angel — Issue #4: Compile failure
Author: afcowie
Created: 2011-11-27 02:46:40+00:00
State: open

Hey. I tried rebuilding Angel after your recent switch to configure, and got the following compile failure:

Angel/Config.hs:47:64:
No instance for (Integral Rational)
arising from a use of `fromIntegral'
Possible fix: add an instance declaration for (Integral Rational)
In the `delay' field of a record
In the expression: prog {delay = (fromIntegral n)}
In an equation for `modifyProg':
modifyProg prog "delay" (Number n)
| n < 0 = error "delay value must be >= 0"
| otherwise = prog {delay = (fromIntegral n)}

I would have thought fromRational; meanwhile did you mean to change the type of delay to something other than Int?

AfC