Skip to content

Instantly share code, notes, and snippets.

// /build.sbt
lazy val commonSettings = Seq(
name := "GeoQuiz",
organization := "com.kerbel",
version := "0.1.0",
versionCode := Some(1),
scalaVersion := "2.11.8",
libraryDependencies := commonLibs
)
module App.Layout where
import App.Counter as Counter
import App.CounterPair as CounterPair
import App.NotFound as NotFound
import App.Todos as TodoList
import App.Routes (Route(..))
import Prelude (($), map)
import Network.HTTP.Affjax (AJAX)
import Control.Monad.Aff.Console (CONSOLE)
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
import Test.QuickCheck
import JoinList
import Sized
-- Safe index, like !! for lists.
(!!?) :: [a] -> Int -> Maybe a
[] !!? i = Nothing