diff options
author | James Crayne <jim.crayne@gmail.com> | 2014-04-26 17:34:22 -0400 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2014-04-26 17:34:22 -0400 |
commit | 612ed7d0d8e1dffb0ba4bc98a986a0600fca116c (patch) | |
tree | 9c00f978b952663dc3b0d0f56f246d0bb188fc1c /KeyRing.hs | |
parent | c29cc59e12c88b3d1b820091c1d124e17dc537e1 (diff) | |
parent | 1c65e0cf8a471ed2790174a383c7ce1942df0b94 (diff) |
Merge branch 'master' into ui2
Conflicts:
kiki.hs
Diffstat (limited to 'KeyRing.hs')
-rw-r--r-- | KeyRing.hs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 | ||