Created
December 31, 2014 04:42
-
-
Save amonshiz/b39b07e3a974c382c94f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data AssignmentGrade = AssignmentGrade { score :: Int, grade :: Char } deriving(Show, Read, Eq) | |
instance Ord AssignmentGrade where | |
compare ag1 ag2 = compare (score ag1) (score ag2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment