use Floating typeclass instead of CReal in Types.hs