import _ from 'ramda'
import { IO } from 'ramda-fantasy'
const IOwindow = IO(() => window)
IOwindow
.map(_.prop('location'))
.map(_.prop('href'))
.map(_.split('/'))
// IO(["http:", "", "localhost:8000", "blog", "posts"])
const $ = selector => IO(() => document.querySelectorAll(selector))
$('#container')
.map(_.head)
.map(div => div.innerHTML)
// IO('I am some inner html')