Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean things up some #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add Eq instance
Because we can.
  • Loading branch information
treeowl committed Aug 7, 2018
commit 331cf2df19554545da7dbb9ae29866b860848de6
1 change: 1 addition & 0 deletions src/Data/MedianStream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 33,7 @@ type Right a = MinHeap a
-- | A MedianStream is a data type that can be inserted into and queried
-- to get a median of a stream of numeric values.
data MedianStream a = MedianStream !(Left a) !(Right a)
deriving Eq
-- Invariants:
--
-- 1. Each element of the left heap is less than or equal to each
Expand Down