Skip to content

Commit

Permalink
Strict Interval - little preformance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Slowyn committed Aug 30, 2024
1 parent b17fe45 commit 7c62a86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Interval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ where

import Data.Ord (clamp)

data Interval = Interval Double Double deriving (Show, Eq)
data Interval = Interval !Double !Double
deriving (Show, Eq)

instance Ord Interval where
(<=) a b = intervalSize a <= intervalSize b
Expand Down

0 comments on commit 7c62a86

Please sign in to comment.