Move stuff around + add lean and idris experiments
This commit is contained in:
parent
a45a4e94b3
commit
ca3f83d186
122 changed files with 1959 additions and 2 deletions
purescript/existentials-blog/src
17
purescript/existentials-blog/src/Exists.purs
Normal file
17
purescript/existentials-blog/src/Exists.purs
Normal file
|
@ -0,0 +1,17 @@
|
|||
module Exists where
|
||||
|
||||
|
||||
import Prelude
|
||||
|
||||
import Data.Exists (Exists, mkExists)
|
||||
|
||||
-- type Exists f = forall result. (forall a. f a (a -> result)) -> result
|
||||
|
||||
type Forall :: forall k. (k -> Type) -> Type -> Type
|
||||
type Forall f r = forall a. f a -> r
|
||||
|
||||
{- type Showable a f = Show a => f
|
||||
type EConstructor f = forall a. f a (a -> Exists f)
|
||||
|
||||
mkShowable :: EConstructor Showable
|
||||
mkShowable a f = f a -}
|
10
purescript/existentials-blog/src/Main.purs
Normal file
10
purescript/existentials-blog/src/Main.purs
Normal file
|
@ -0,0 +1,10 @@
|
|||
module Main where
|
||||
|
||||
import Prelude
|
||||
|
||||
import Effect (Effect)
|
||||
import Effect.Console (log)
|
||||
|
||||
main :: Effect Unit
|
||||
main = do
|
||||
log "🍝"
|
Loading…
Add table
Add a link
Reference in a new issue