summaryrefslogtreecommitdiff
path: root/KeyRing.hs
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2014-04-26 17:34:22 -0400
committerJames Crayne <jim.crayne@gmail.com>2014-04-26 17:34:22 -0400
commit612ed7d0d8e1dffb0ba4bc98a986a0600fca116c (patch)
tree9c00f978b952663dc3b0d0f56f246d0bb188fc1c /KeyRing.hs
parentc29cc59e12c88b3d1b820091c1d124e17dc537e1 (diff)
parent1c65e0cf8a471ed2790174a383c7ce1942df0b94 (diff)
Merge branch 'master' into ui2
Conflicts: kiki.hs
Diffstat (limited to 'KeyRing.hs')
-rw-r--r--KeyRing.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/KeyRing.hs b/KeyRing.hs
index c2e5ead..ecb6021 100644
--- a/KeyRing.hs
+++ b/KeyRing.hs
@@ -708,6 +708,10 @@ parseSpec grip spec = (topspec,subspec)
708 | 'a' <= c && c <= 'f' = True 708 | 'a' <= c && c <= 'f' = True
709 ishex c = False 709 ishex c = False
710 710
711 -- | Split a string into two at the first occurance of the given
712 -- delimiter. If the delimeter does not occur, then the first
713 -- item of the returned pair is empty and the second item is the
714 -- input string.
711 unprefix c spec = if null (snd p) then swap p else (fst p, tail (snd p)) 715 unprefix c spec = if null (snd p) then swap p else (fst p, tail (snd p))
712 where p = break (==c) spec 716 where p = break (==c) spec
713 717