summaryrefslogtreecommitdiff
path: root/src/AI/Search/FiniteDomain/Int.hs
blob: 9a63e73395fccaead575203cc8a614756327e467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
-----------------------------------------------------------------------------
-- |
-- Module      :  AI.Search.FiniteDomain.Int
-- Copyright   :  (c) Michael Szvetits, 2020
-- License     :  BSD3 (see the file LICENSE)
-- Maintainer  :  typedbyte@qualified.name
-- Stability   :  stable
-- Portability :  portable
--
-- This module exports the types and functions needed to define constraints
-- and run the constraint solver.
-----------------------------------------------------------------------------
module AI.Search.FiniteDomain.Int
  ( -- * Core Monad
    FD
    -- * Building Expressions
  , Expression
  , int
  , newVar
  , initNewVar
  , sum
    -- * Building Constraints
  , Constraint
  , (#=)
  , (#/=)
  , (#<)
  , (#<=)
  , (#>)
  , (#>=)
  , (/\)
  , (\/)
  , not'
  , between
  , allDifferent
  -- * Running the Solver
  , Labeling(..)
  , labeling
  , runFD
  ) where

-- base
import Prelude hiding ( sum )

import AI.Search.FiniteDomain.Int.Constraint
import AI.Search.FiniteDomain.Int.Expression ( Expression, int, sum )