miso-1.8.0.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

Contents

Description

 
Synopsis

Documentation

class ToMisoString str where Source #

Convenience class for creating MisoString from other string-like types

Methods

toMisoString :: str -> MisoString Source #

Instances
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 Text Source # 
Instance details

Defined in Miso.String

ToMisoString MisoString Source # 
Instance details

Defined in Miso.String

class FromMisoString t where Source #

Class used to parse a MisoString. Like a safe Read for MisoString

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

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

type MisoString = JSString Source #

String type swappable based on compiler

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

Convenience function, shorthand for toMisoString

Orphan instances