Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
Parser = Parsec String [String]shakespeare Text.Shakespeare A parser with a user state of [String]
-
shakespeare Text.Shakespeare No documentation available.
-
shakespeare Text.Shakespeare Coffeescript, TypeScript, and other languages compiles down to Javascript. Previously we waited until the very end, at the rendering stage to perform this compilation. Lets call is a post-conversion This had the advantage that all Haskell values were inserted first: for example a value could be inserted that Coffeescript would compile into Javascript. While that is perhaps a safer approach, the advantage is not used in practice: it was that way mainly for ease of implementation. The down-side is the template must be compiled down to Javascript during every request. If instead we do a pre-conversion to compile down to Javascript, we only need to perform the compilation once. The problem then is the insertion of Haskell values: we need a hole for them. This can be done with variables known to the language. During the pre-conversion we first modify all Haskell insertions So #{a} is change to shakespeare_var_a Then we can place the Haskell values in a function wrapper that exposes those variables: (function(shakespeare_var_a){ ... shakespeare_var_a ...}) TypeScript can compile that, and then we tack an application of the Haskell values onto the result: (#{a}) preEscapeIgnoreBalanced is used to not insert backtacks for variable already inside strings or backticks. coffeescript will happily ignore the interpolations, and backticks would not be treated as escaping in that context. preEscapeIgnoreLine was added to ignore comments (which in Coffeescript begin with a #)
PreConvert :: PreConversion -> [Char] -> [Char] -> Maybe WrapInsertion -> PreConvertshakespeare Text.Shakespeare No documentation available.
-
HTTP Network.Browser HTTP proxies (or not) are represented via Proxy, specifying if a proxy should be used for the request (see setProxy)
Proxy :: String -> Maybe Authority -> ProxyHTTP Network.Browser Use the proxy given. Should be of the form "http://host:port", "host", "host:port", or "http://host". Additionally, an optional Authority for authentication with the proxy.
-
HTTP Network.HTTP.Base No documentation available.
-
HTTP Network.HTTP.Base No documentation available.
-
Handling proxy server settings and their resolution.
-
HTTP Network.HTTP.Proxy HTTP proxies (or not) are represented via Proxy, specifying if a proxy should be used for the request (see setProxy)