rblaze/bond-haskell

View on GitHub
runtime/src/Data/Bond/Internal/Utils.hs

Summary

Maintainability
Test Coverage
module Data.Bond.Internal.Utils where

import qualified Data.Map as M
import qualified Data.Text as T

makeGenericName :: T.Text -> [T.Text] -> T.Text
makeGenericName upper xs = upper `T.append` T.singleton '<'
                            `T.append` T.intercalate (T.singleton '.') xs
                            `T.append` T.singleton '>'

makeMap :: Ord k => [(k, v)] -> M.Map k v
makeMap = M.fromList