Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mkrull on github.
  • I am mkrull (https://keybase.io/mkrull) on keybase.
  • I have a public key ASC_dVg_m4GUJZ3iaW6aAJTcJFg8iac2mUcnI9EullxN5Ao

To claim this, I am signing this object:

Twyla Service

The Twyla Service library provides primitives to build micro services that just work within the Twyla platform.

RPC

Remote procedure calls are used for synchronous communication between services and to communicate with the integrations. RPC is done via the HTTP protocol.

@mkrull
mkrull / Main.hs
Created October 26, 2013 21:43
Key not present error in "the pragmatic haskeller" example from https://www.fpcomplete.com/user/adinapoli/the-pragmatic-haskeller/episode-1-json
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Aeson
import Control.Applicative
import Control.Monad
import Data.Monoid
import qualified Data.ByteString.Lazy.Char8 as C8
import qualified Data.ByteString.Lazy as BL
[1 of 1] Compiling Main ( test.hs, test.o )
test.hs:17:45:
No instance for (FromJSON (Map String String))
arising from a use of `parseJSON'
Possible fix:
add an instance declaration for (FromJSON (Map String String))
In the second argument of `(<$>)', namely `parseJSON val'
In the expression: TemplateConfig <$> parseJSON val
In an equation for `parseJSON':
seta s_mixPreStep "0.05"
seta s_mixahead "0.140"
seta s_doppler "0"
seta s_announcerVolume "1.0"
seta r_windowedMode "12"
seta r_vertexLight "0"
seta r_teleporterFlash "1"
seta r_picmip "6"
seta r_lodBias "0"
seta r_gl_reserved "1"