Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
---------------------------------------------------------------------------- | |
-- Tested with ghc 8.2.2 | |
---------------------------------------------------------------------------- | |
{-# LANGUAGE DeriveFoldable #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE DeriveTraversable #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE StandaloneDeriving #-} | |
{-# LANGUAGE TupleSections #-} |
const I = x => x | |
const K = x => y => x | |
const A = f => x => f (x) | |
const T = x => f => f (x) | |
const W = f => x => f (x) (x) | |
const C = f => y => x => f (x) (y) | |
const B = f => g => x => f (g (x)) | |
const S = f => g => x => f (x) (g (x)) | |
const S_ = f => g => x => f (g (x)) (x) | |
const S2 = f => g => h => x => f (g (x)) (h (x)) |
Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
;; Autor: Paulo Suzart | |
;; This code reads a CSV file with a given format and then | |
;; talks to google to get its route name and generage a SQL output | |
;; just lein run it. No args to the main. | |
(ns geocoder.core | |
(import com.google.code.geocoder.Geocoder) | |
(import com.google.code.geocoder.GeocoderRequestBuilder) | |
(import com.google.code.geocoder.model.LatLng) | |
(import com.google.code.geocoder.model.GeocoderStatus) |