diff options
Diffstat (limited to 'lib/KeyRing.hs')
-rw-r--r-- | lib/KeyRing.hs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/KeyRing.hs b/lib/KeyRing.hs index 87b38bf..1aed50e 100644 --- a/lib/KeyRing.hs +++ b/lib/KeyRing.hs | |||
@@ -409,22 +409,9 @@ instance ASN1Object RSAPrivateKey where | |||
409 | 409 | ||
410 | 410 | ||
411 | 411 | ||
412 | uncamel :: String -> String | ||
413 | uncamel str = unwords $ firstWord ++ (toLower .: otherWords) ++ args | ||
414 | where | ||
415 | (.:) = fmap . fmap | ||
416 | ( firstWord , | ||
417 | otherWords ) = splitAt 1 ws | ||
418 | ws = camel >>= groupBy (\_ c -> isLower c) | ||
419 | ( camel, args) = splitAt 1 $ words str | ||
420 | |||
421 | reportString :: KikiReportAction -> String | 412 | reportString :: KikiReportAction -> String |
422 | reportString x = uncamel $ show x | 413 | reportString x = uncamel $ show x |
423 | 414 | ||
424 | errorString :: KikiCondition a -> String | ||
425 | errorString (KikiSuccess {}) = "success" | ||
426 | errorString e = uncamel . show $ fmap (const ()) e | ||
427 | |||
428 | -- | Errors in kiki are indicated by the returning of this record. | 415 | -- | Errors in kiki are indicated by the returning of this record. |
429 | data KikiResult a = KikiResult | 416 | data KikiResult a = KikiResult |
430 | { kikiCondition :: KikiCondition a | 417 | { kikiCondition :: KikiCondition a |