diff options
| author | Joris | 2018-10-28 17:57:58 +0100 | 
|---|---|---|
| committer | Joris | 2018-10-28 17:57:58 +0100 | 
| commit | 40b4994797a797b1fa86cafda789a5c488730c6d (patch) | |
| tree | ad195b31fa442821b9de8f99364e254f0f41935f /server/src/Validation.hs | |
| parent | df83b634006c699cfa1e921bf74ce951a906a62f (diff) | |
Delete payment
Diffstat (limited to 'server/src/Validation.hs')
| -rw-r--r-- | server/src/Validation.hs | 23 | 
1 files changed, 0 insertions, 23 deletions
| diff --git a/server/src/Validation.hs b/server/src/Validation.hs deleted file mode 100644 index fd739cd..0000000 --- a/server/src/Validation.hs +++ /dev/null @@ -1,23 +0,0 @@ -module Validation -  ( nonEmpty -  , number -  ) where - -import           Data.Text (Text) -import qualified Data.Text as T - -nonEmpty :: Text -> Maybe Text -nonEmpty str = -  if T.null str -   then Nothing -   else Just str - -number :: (Int -> Bool) -> Text -> Maybe Int -number numberForm str = -  case reads (T.unpack str) :: [(Int, String)] of -    (num, _) : _ -> -      if numberForm num -        then Just num -        else Nothing -    _ -> -      Nothing | 
