1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Fix a doctest.

This commit is contained in:
Rob Rix 2018-05-11 08:58:53 -04:00
parent 2eb78e8f91
commit fa2b566f08

View File

@ -85,7 +85,7 @@ mergeNewer (Environment a) (Environment b) =
-- | Extract an association list of bindings from an 'Environment'. -- | Extract an association list of bindings from an 'Environment'.
-- --
-- >>> pairs shadowed -- >>> pairs shadowed
-- [(Name "foo",Address {unAddress = Precise 1)] -- [(Name "foo",Address (Precise 1))]
pairs :: Environment location value -> [(Name, Address location value)] pairs :: Environment location value -> [(Name, Address location value)]
pairs = map (second Address) . Map.toList . fold . unEnvironment pairs = map (second Address) . Map.toList . fold . unEnvironment