Browse Source

fromJust patch analogous to the last one

master
Jon Kristensen 14 years ago
parent
commit
bb733cd6da
  1. 2
      source/Network/Xmpp/Types.hs

2
source/Network/Xmpp/Types.hs

@ -565,7 +565,7 @@ instance Ord Version where
| otherwise = compare aminor bminor | otherwise = compare aminor bminor
instance Read Version where instance Read Version where
readsPrec _ txt = [(fromJust $ versionFromText $ Text.pack txt, "")] readsPrec _ txt = (,"") <$> maybeToList (versionFromText $ Text.pack txt)
instance Show Version where instance Show Version where
show (Version major minor) = (show major) ++ "." ++ (show minor) show (Version major minor) = (show major) ++ "." ++ (show minor)

Loading…
Cancel
Save