Skip to content

Commit

Permalink
Merge pull request #6 from msakai/PatternSignatures-to-ScopedTypeVari…
Browse files Browse the repository at this point in the history
…ables

Replace PatternSignatures with ScopedTypeVariables
  • Loading branch information
jwaldmann committed Aug 26, 2022
2 parents c7ad1e0 + 04b4a57 commit 359fde5
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion examples/AIS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-- for Definition and Background, see
-- http://www.combinatorics.org/ojs/index.php/eljc/article/view/DS6

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, product, and, or )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/Cage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- example usage: ./dist/build/Cage/Cage 3 5 10
-- should find the Petersen graph

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, product )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/Factor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- | run like this: ./test/Factor 1000000000001
-- (takes 10 .. 20 seconds depending on your CPU)

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not )

Expand Down
2 changes: 1 addition & 1 deletion examples/HC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- example usage: ./dist/build/HC/HC 8 8
-- should find and print a solution in < 10 seconds.

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/Hidoku.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-- For discussion of a many more encoding options,
-- see 4.2 and 4.4 of http://nbn-resolving.de/urn:nbn:de:bsz:14-qucosa-158672

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, product )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/Langford.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- | The Langford Sequence Problem
-- http://www.csplib.org/Problems/prob024/

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, product, and, or )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/Oscillator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- example usage: ./dist/build/Life/Life 3 9 9 20
-- arguments are: period, width, height, number of life start cells

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}
{-# language FlexibleContexts #-}

import Prelude hiding ( not, or, and )
Expand Down
2 changes: 1 addition & 1 deletion examples/PP.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- | find incidence matrix of projective plane of given order
-- example usage: ./dist/build/PP/PP 2

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}
{-# language FlexibleContexts #-}

import Prelude hiding ( not, and, or )
Expand Down
2 changes: 1 addition & 1 deletion examples/Pigeon.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- | Simple Pigoenhole benchmark:
-- put p pigeons in (p-1) holes.

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, product )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/RFC.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- rectangle free colourings of grids
-- see http://www.cs.umd.edu/~gasarch/papers/grid.pdf

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}
{-# language NoMonomorphismRestriction #-}

import Prelude hiding ( not, and, or, product )
Expand Down
2 changes: 1 addition & 1 deletion examples/Ramsey.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- last number is size of graph,
-- earlier numbers are sizes of forbidden cliques

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}
{-# language FlexibleContexts #-}

import Prelude hiding ( not, and, or, product )
Expand Down
2 changes: 1 addition & 1 deletion examples/RamseyFM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- last number is size of graph,
-- earlier numbers are sizes of forbidden cliques

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, and, or, product )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/Spaceship.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-- ./Spaceship 1 1 4 6 -- glider
-- ./Spaceship 0 2 4 7 9 9 -- Conway's lightweight spaceship

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}
{-# language FlexibleContexts #-}

import Prelude hiding ( not, or, and )
Expand Down
2 changes: 1 addition & 1 deletion examples/Sudoku.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- argument n: board is (n^2)x(n^2),
-- so standard Sudoku is for n=3

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, product )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/VC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- (that is, if you put knights there, they control the full board)
-- example: VC 8 12

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not )

Expand Down
2 changes: 1 addition & 1 deletion examples/Waerden.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- | find van der Warden Colourings
-- (avoiding monochromatic arithmetic sequences)

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, and, or, product )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion examples/WaerdenGlucose.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- | find van der Warden Colourings
-- (avoiding monochromatic arithmetic sequences)

{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

import Prelude hiding ( not, and, or, product )
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion src/Satchmo/SAT/CNF.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE PatternSignatures #-}
{-# LANGUAGE ScopedTypeVaribles #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}

Expand Down
2 changes: 1 addition & 1 deletion src/Satchmo/SAT/External.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE PatternSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# language TemplateHaskell #-}

Expand Down
2 changes: 1 addition & 1 deletion src/Satchmo/SAT/Mini.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE PatternSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}


Expand Down
2 changes: 1 addition & 1 deletion src/Satchmo/Unary/Op/Common.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# language NoMonomorphismRestriction #-}
{-# language PatternSignatures #-}
{-# language ScopedTypeVariables #-}

module Satchmo.Unary.Op.Common

Expand Down

0 comments on commit 359fde5

Please sign in to comment.