Copyright | (C) 2016-2018 David M. Johnson |
---|---|
License | BSD3-style (see the file LICENSE) |
Maintainer | David M. Johnson <djohnson.m@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- class ToMisoString str where
- type MisoString = Text
- module Data.Monoid
- module Data.Text
- module Data.Text
- ms :: ToMisoString str => str -> MisoString
Documentation
class ToMisoString str where Source #
Convenience class for creating MisoString
from other string-like types
toMisoString :: str -> MisoString Source #
fromMisoString :: MisoString -> str Source #
Instances
ToMisoString ByteString Source # | |
Defined in Miso.String toMisoString :: ByteString -> MisoString Source # | |
ToMisoString ByteString Source # | |
Defined in Miso.String toMisoString :: ByteString -> MisoString Source # | |
ToMisoString String Source # | |
Defined in Miso.String toMisoString :: String -> MisoString Source # fromMisoString :: MisoString -> String Source # | |
ToMisoString Text Source # | |
Defined in Miso.String toMisoString :: Text -> MisoString Source # fromMisoString :: MisoString -> Text Source # | |
ToMisoString MisoString Source # | |
Defined in Miso.String toMisoString :: MisoString -> MisoString Source # |
type MisoString = Text Source #
String type swappable based on compiler
module Data.Monoid
module Data.Text
module Data.Text
ms :: ToMisoString str => str -> MisoString Source #
Convenience function, shorthand for toMisoString