Skip to content

Instantly share code, notes, and snippets.

@hoodunit
hoodunit / Main.purs
Created Jun 27, 2018
RevealJS with PureScript Halogen hack
View Main.purs
appComponent :: forall m. H.Component HH.HTML Query Unit Void m
appComponent = H.component
{ initialState: const {}
, render
, eval
, receiver: const Nothing
}
render :: State -> H.ComponentHTML Query
@hoodunit
hoodunit / PsJsonExample.purs
Last active Nov 20, 2017
PureScript: representing JSON values with many nested optional fields
View PsJsonExample.purs
-- PureScript representation for the JSON object
-- accepted by an API.
newtype Job = Job
{ apiVersion :: (NullOrUndefined String)
, kind :: (NullOrUndefined String)
, metadata :: (NullOrUndefined MetaV1.ObjectMeta)
, spec :: (NullOrUndefined JobSpec)
, status :: (NullOrUndefined JobStatus) }
derive instance newtypeJob :: Newtype Job _
View Nightweb Crash
03-06 18:51:07.113 1057 PanelView V animationTick called with dtms=0; nothing to do (h=1776.0 v=-6000.0)
03-06 18:51:07.113 801 ActivityManager I START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=net.nightweb cmp=net.nightweb/.SplashActivity} from pid 18489
03-06 18:51:07.183 801 dalvikvm D GC_FOR_ALLOC freed 3437K, 15% free 44439K/51792K, paused 68ms, total 68ms
03-06 18:51:07.193 801 InputMethodManager.. W Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4401eaf0 attribute=null, token = android.os.BinderProxy@4
30e6478
03-06 18:51:07.213 801 ActivityManager I Start proc net.nightweb for activity net.nightweb/.SplashActivity: pid=22148 uid=10150 gids={50150, 3003, 1028, 1015}
03-06 18:51:07.283 22148 dalvikvm D GC_FOR_ALLOC freed 50K, 1% free 16762K/16844K, paused 14ms, to
You can’t perform that action at this time.