mirror of
https://github.com/github/semantic.git
synced 2024-11-29 11:02:26 +03:00
Slightly more elegant expression of mark
This commit is contained in:
parent
44b8e9249a
commit
f7e721a3a0
@ -23,7 +23,7 @@ mark :: Functor f
|
||||
=> (Range -> History)
|
||||
-> f Location
|
||||
-> f History
|
||||
mark f = fmap (\Location{..} -> f locationByteRange)
|
||||
mark f = fmap (f . locationByteRange)
|
||||
|
||||
-- | Change the 'History' annotation on a 'Term'.
|
||||
remark :: Functor f
|
||||
|
Loading…
Reference in New Issue
Block a user