summaryrefslogtreecommitdiff
path: root/lib/KeyRing.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/KeyRing.hs')
-rw-r--r--lib/KeyRing.hs13
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
412uncamel :: String -> String
413uncamel 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
421reportString :: KikiReportAction -> String 412reportString :: KikiReportAction -> String
422reportString x = uncamel $ show x 413reportString x = uncamel $ show x
423 414
424errorString :: KikiCondition a -> String
425errorString (KikiSuccess {}) = "success"
426errorString 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.
429data KikiResult a = KikiResult 416data KikiResult a = KikiResult
430 { kikiCondition :: KikiCondition a 417 { kikiCondition :: KikiCondition a