We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7473b6b commit a4774b5Copy full SHA for a4774b5
src/Minimal.hs
@@ -8,11 +8,11 @@ import Text.Printf (printf)
8
import Data.Set (Set, (\\))
9
import qualified Data.Set as Set
10
11
-data Formula where
12
- Proposition :: String -> Formula
13
- Conjunction :: Formula -> Formula -> Formula
14
- Disjunction :: Formula -> Formula -> Formula
15
- Implication :: Formula -> Formula -> Formula
+data Formula
+ = Proposition String
+ | Conjunction Formula Formula
+ | Disjunction Formula Formula
+ | Implication Formula Formula
16
deriving (Eq, Ord)
17
18
(#&) :: Formula -> Formula -> Formula
0 commit comments