Skip to content

Commit

Permalink
add missing extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
JBetz committed Jan 16, 2020
1 parent 077aa9b commit 33b45fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Data/Patch/IntMap.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
-- | Module containing 'PatchIntMap', a 'Patch' for 'IntMap' which allows for
-- insert/update or delete of associations.
Expand All @@ -27,6 +30,8 @@ instance Patch (PatchIntMap a) where
adds = IntMap.mapMaybe id p
in IntMap.union adds $ v `IntMap.difference` removes

makeWrapped ''PatchIntMap

-- | @a <> b@ will apply the changes of @b@ and then apply the changes of @a@.
-- If the same key is modified by both patches, the one on the left will take
-- precedence.
Expand Down

0 comments on commit 33b45fe

Please sign in to comment.