Skip to content

Commit

Permalink
Update previously removed code for current release
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Mar 25, 2013
1 parent 9217c72 commit 49ebfe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Control/Lens/At.hs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ import Data.Word
_at, resultAt :: Ixed f m => Index m -> IndexedLensLike' (Index m) f m (IxValue m)
_at = ix
resultAt = ix
{-# DEPRECATED _at, resultAt "use 'ix'. This function will be removed in version 3.9" #-}
{-# DEPRECATED _at, resultAt "use 'ix'. This function will be removed after GHC 7.8 is released." #-}

-- |
-- This class provides a simple 'IndexedFold' (or 'IndexedTraversal') that lets you view (and modify)
Expand Down
4 changes: 2 additions & 2 deletions src/Control/Lens/Fold.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2487,10 +2487,10 @@ idroppingWhile p l f = (flip evalState True .# getCompose) `rmap` l g where
------------------------------------------------------------------------------

-- | A deprecated alias for 'firstOf'.
headOf :: Getting (First a) s t a b -> s -> Maybe a
headOf :: Getting (First a) s a -> s -> Maybe a
headOf l = getFirst #. foldMapOf l (First #. Just)
{-# INLINE headOf #-}
{-# DEPRECATED headOf "`headOf' will be removed in 3.9. (Use `preview' or `firstOf')" #-}
{-# DEPRECATED headOf "`headOf' will be removed after GHC 7.8 is released. (Use `preview' or `firstOf')" #-}

------------------------------------------------------------------------------
-- Misc.
Expand Down

0 comments on commit 49ebfe4

Please sign in to comment.