Skip to content

Instantly share code, notes, and snippets.

@Goheeca
Goheeca / examples.lisp
Last active April 9, 2022 03:09
NILP (NIL Processing Language)
(load "nilp.lisp")
(eval
(read-from-string
(write-to-string
(nility
'(loop for i below 10
do (format t "~@(~:r hello world!~)~%" i))))))
@Goheeca
Goheeca / RefinedTest.hs
Last active November 29, 2021 19:04
refined library issue
#!/usr/bin/env stack
-- stack --resolver lts-18.5 script --package template-haskell --package refined
{-# LANGUAGE TemplateHaskell, TypeApplications #-}
import Refined
import Data.Either
import RefinedTestDefinitions
refinedTypeAppliedTest :: RefinedTest Int
@Goheeca
Goheeca / Main.hs
Last active November 30, 2021 22:19
reflection + template haskell issue
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Reificator
main :: IO ()
main = pure $$(guardTH (operationTest 11 7 4) [|| () ||])