Advise-me-0.1: Assessment services for the Advise-Me project

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Domain.Math.Power.Utils

Description

some of these help functions may have a broader scope and could be moved to other parts of the framework (eg. Common)

Synopsis

Documentation

exhaustiveStrategy :: IsTerm a => [Rule a] -> Strategy (Context a) Source #

Strategy functions -------------------------------------------------------

smartRule :: Rule Expr -> Rule Expr Source #

Rule functions -----------------------------------------------------------

plainNatView :: View Expr Integer Source #

View functions -----------------------------------------------------------

eqView :: View a b -> View (Equation a) (b, b) Source #

naturalRules :: [Rule Expr] Source #

Rule collections ---------------------------------------------------------

sortExpr :: Expr -> Expr Source #

Common functions ---------------------------------------------------------

class SemEq a where Source #

Minimal complete definition

(===)

Methods

(===) :: a -> a -> Bool infix 4 Source #

(=/=) :: a -> a -> Bool infix 4 Source #

Instances
SemEq Expr Source # 
Instance details

Defined in Domain.Math.Power.Utils

Methods

(===) :: Expr -> Expr -> Bool Source #

(=/=) :: Expr -> Expr -> Bool Source #

SemEq a => SemEq (Equation a) Source # 
Instance details

Defined in Domain.Math.Power.Utils

Methods

(===) :: Equation a -> Equation a -> Bool Source #

(=/=) :: Equation a -> Equation a -> Bool Source #

SemEq a => SemEq (OrList a) Source # 
Instance details

Defined in Domain.Math.Power.Utils

Methods

(===) :: OrList a -> OrList a -> Bool Source #

(=/=) :: OrList a -> OrList a -> Bool Source #

swap :: (a, b) -> (b, a) Source #

split :: Eq a => (a -> a -> t) -> [a] -> [(t, [a])] Source #

toMaybe :: (a -> Bool) -> a -> Maybe a Source #

joinBy :: Eq a => (a -> a -> Bool) -> [a] -> [[a]] Source #

dropUntil :: (a -> a -> Bool) -> [a] -> [a] Source #

holes :: [a] -> [(a, [a], a -> [a])] Source #

twoNonAdjacentHoles :: [a] -> [((a, a), a -> [a])] Source #