disjoint (assignment1, assignment2) =
(assignment1 `before` assignment2) || (assignment2 `before` assignment1)
-overlaps pair = not $ disjoint pair
+overlaps = not . disjoint
contains, before :: Assignment -> Assignment -> Bool
contains (Assignment lower1 upper1) (Assignment lower2 upper2) =
(lower1 <= lower2) && (upper1 >= upper2)
-before (Assignment _lower1 upper1) (Assignment lower2 _upper2) = (upper1 < lower2)
+before (Assignment _lower1 upper1) (Assignment lower2 _upper2) =
+ (upper1 < lower2)
-- Parse the input file