This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE QuasiQuotes #-} | |
module Exlog where | |
import Control.Applicative | |
import Control.Monad (unless, void) | |
import Data.Char (isSpace) | |
import Data.List (dropWhile, dropWhileEnd) | |
import qualified Data.Map.Strict as M | |
import Data.Time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
module Funct where | |
import Data.Data | |
-- import Data.Typeable | |
import Test.QuickCheck | |
import Test.QuickCheck.Function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Phone where | |
import Data.Char (isLetter, isUpper, toLower, toUpper) | |
import Data.List (elemIndex, elemIndices, find, nub, sortBy) | |
import Data.Maybe (fromMaybe) | |
import Data.Tuple (swap) | |
phone :: [(Char, String)] | |
phone = | |
[ ('0', " +_0") |