Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Q: utility functions for supplying typed data #26

Open
ocramz opened this issue Jul 9, 2017 · 0 comments
Open

Q: utility functions for supplying typed data #26

ocramz opened this issue Jul 9, 2017 · 0 comments

Comments

@ocramz
Copy link

ocramz commented Jul 9, 2017

I just noticed there aren't any combinators to use e.g. integers or doubles as AttributeValues, or sum types as options. The interface is "stringly-typed" and it forces some awkward code such as the following :

-- ** Conversion from primitive numerical types to AttributeValue
vi :: Int -> S.AttributeValue
vi = S.toValue

vis :: [Int] -> S.AttributeValue
vis = S.toValue . unwords . map show
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant