From cad0e1c8b7eb21f8dceca8dd9fa3bc1d1aa7eabd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 15 May 2011 02:49:43 -0400 Subject: simplified a bunch of Maybe handling --- LocationLog.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'LocationLog.hs') diff --git a/LocationLog.hs b/LocationLog.hs index e0ccb642b..6759b47fe 100644 --- a/LocationLog.hs +++ b/LocationLog.hs @@ -71,9 +71,7 @@ instance Read LogLine where -- Such lines have a status of Undefined. readsPrec _ string = if length w == 3 - then case pdate of - Just v -> good v - Nothing -> bad + then maybe bad good pdate else bad where w = words string -- cgit v1.2.3