summaryrefslogtreecommitdiff
path: root/examples/passing/OperatorInlining.purs
blob: ae3104e346dd79fa41257b0fffbe18337964e14c (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
46
module Main where

import Debug.Trace

main = do

  -- semiringNumber
  print (1 + 2)
  print (1 * 2)

  -- ringNumber
  print (1 - 2)
  print (negate 1)

  -- moduleSemiringNumber
  print (1 / 2)

  -- ordNumber
  print (1 > 2)
  print (1 < 2)
  print (1 <= 2)
  print (1 >= 2)
  print (1 == 2)

  -- eqNumber
  print (1 == 2)
  print (1 /= 2)

  -- eqString
  print ("foo" == "bar")
  print ("foo" /= "bar")

  -- eqBoolean
  print (true == false)
  print (true /= false)

  -- semigroupString
  print ("foo" ++ "bar")
  print ("foo" <> "bar")

  -- latticeBoolean
  print (top && true)
  print (bottom || false)

  -- complementedLatticeBoolean
  print (not true)