Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
2fb4de6c
Commit
2fb4de6c
authored
Sep 25, 2016
by
Duncan Coutts
Browse files
Add comment on MonitorStateFileSet being a bag [skip ci]
Explain why it's not represented by a Set.
parent
c7d55c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/FileMonitor.hs
View file @
2fb4de6c
...
...
@@ -201,6 +201,11 @@ monitorFileHashedSearchPath notFoundAtPaths foundAtPath =
data
MonitorStateFileSet
=
MonitorStateFileSet
!
[
MonitorStateFile
]
!
[
MonitorStateGlob
]
-- Morally this is not actually a set but a bag (represented by lists).
-- There is no principled reason to use a bag here rather than a set, but
-- there is also no particular gain either. That said, we do preserve the
-- order of the lists just to reduce confusion (and have predictable I/O
-- patterns).
deriving
Show
type
Hash
=
Int
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment