miso-1.8.2.0: A tasty Haskell front-end framework
Copyright(C) 2016-2018 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <djohnson.m@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.String

Description

 
Synopsis

Documentation

class ToMisoString str where Source #

Convenience class for creating MisoString from other string-like types

Methods

toMisoString :: str -> MisoString Source #

Instances

Instances details
ToMisoString Double Source # 
Instance details

Defined in Miso.String

ToMisoString Float Source # 
Instance details

Defined in Miso.String

ToMisoString Int Source # 
Instance details

Defined in Miso.String

ToMisoString Word Source # 
Instance details

Defined in Miso.String

ToMisoString String Source # 
Instance details

Defined in Miso.String

ToMisoString ByteString Source # 
Instance details

Defined in Miso.String

ToMisoString ByteString Source # 
Instance details

Defined in Miso.String

ToMisoString Text Source # 
Instance details

Defined in Miso.String

ToMisoString JSString Source # 
Instance details

Defined in Miso.String

ToMisoString MisoString Source # 
Instance details

Defined in Miso.String

class FromMisoString t where Source #

Class from safely parsing MisoString

fromMisoString :: FromMisoString a => MisoString -> a Source #

Parses a MisoString, throws an error when decoding fails. Use fromMisoStringEither for as a safe alternative.

type MisoString = Text Source #

String type swappable based on compiler

module Data.Text

module Data.Text

ms :: ToMisoString str => str -> MisoString Source #

Convenience function, shorthand for toMisoString