mixed-types-num-0.5.4.0: Alternative Prelude with numeric and logic expressions typed bottom-up
Copyright(c) Michal Konecny Pieter Collins
LicenseBSD3
Maintainermikkonecny@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

MixedTypesNumPrelude

Description

MixedTypesNumPrelude provides a version of Prelude where unary and binary operations such as not, +, == have their result type derived from the parameter type(s).

This module facilitates a single-line import for the package mixed-types-num. See the re-exported modules for further details.

Synopsis

Re-exporting Prelude, hiding the operators we are changing

Error-collecting wrapper type

cn :: v -> CN v #

unCN :: CN p -> p #

clearPotentialErrors :: CanClearPotentialErrors cnt => cnt -> cnt #

If there is a value, remove any potential errors that are associated with it.

A part of package `convertible'

Modules with Prelude alternatives

Re-export for convenient Rational literals

(%) :: Integral a => a -> a -> Ratio a infixl 7 #

Forms the ratio of two integral numbers.