Skip to content

Commit d3462fc

Browse files
authored
Merge pull request #17 from luckyluke66/bugfixes
Bugfixes
2 parents bec490f + 8f7a811 commit d3462fc

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

fuzzySets.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: fuzzySets
3-
version: 0.1.0.0
3+
version: 1.0.0
44
category: Math
55
license: BSD-3-Clause
66
author: Lukas Balog <lukasbalog66@gmail.com>
@@ -47,7 +47,7 @@ library
4747
Utils.Utils
4848

4949
build-depends:
50-
base,
50+
base >=4.14 && < 4.17,
5151

5252
default-extensions:
5353
InstanceSigs

src/Fuzzy/Sets/Cardinality.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ The parameters `p`, `r`, and `threshold` control the behavior of the modifier.
9797
-}
9898
modifierFunction :: (ResiduatedLattice l) => Double -> Double -> Double -> (l -> l)
9999
modifierFunction p r threshold a
100-
| realToFrac a < threshold = mkLattice $ threshold ** (1 - p) * realToFrac a ** p
100+
| realToFrac a < threshold = mkLattice $ threshold ** (1 - p) * (realToFrac a ** p)
101101
| realToFrac a >= threshold = mkLattice $ 1 - (1 - threshold) ** (1 - r) * (1 - realToFrac a) ** r
102102

103103

src/Lattices/ResiduatedLattice.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Nat = Int
3838
-- a '\/' (a '/\' b) ≡ a
3939
-- a '/\' (a '\/' b) ≡ a
4040
-- @
41-
class (Eq l, Ord l, Num l, Real l, RealFrac l, Fractional l) => BoundedLattice l where
41+
class RealFrac l => BoundedLattice l where
4242
-- | meet
4343
(/\) :: l -> l -> l
4444
-- | join
@@ -49,7 +49,6 @@ class (Eq l, Ord l, Num l, Real l, RealFrac l, Fractional l) => BoundedLattice l
4949
bot :: l
5050
-- | constructor for lattice
5151
mkLattice :: Double -> l
52-
-- proc jsou tam vsechny classy?
5352

5453
-- | A bounded lattice with additional laws and operations namely --> and tnorm
5554
--

0 commit comments

Comments
 (0)