mixed-types-num

Alternative Prelude with numeric and logic expressions typed bottom-up https://github.com/michalkonecny/mixed-types-num

Version on this page:0.2.0.1
LTS Haskell 15.15:0.4.0.1
Stackage Nightly 2020-06-05:0.4.0.1
Latest on Hackage:0.4.0.1

See all snapshots mixed-types-num appears in

This package provides a version of Prelude where unary and binary operations such as not, +, == have their result type derived from the parameter type(s) and thus supports mixed-type arithmetic and comparisons.

See module MixedTypesNumPrelude for further documentation.

Ghci 8.0.* fails when loading this package due to ghc bug 13385. This bug does not affect ghci 7.10.3 and ghci 8.2.1.

Changes

  • v 0.1

    • first release
  • v 0.2

    • new CollectErrors wrapper
    • CN, specialisation of CollectErrors to NumErrors
    • numerical partial operators (eg division) return a CN type
    • instances for Data.Complex
  • v 0.2.0.1

    • fix compilation bug in test suite
    • minor doc improvements
    • fix Complex instances of error-throwing division (/!)