This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE Haskell2010, GADTs, Rank2Types, FlexibleInstances #-} | |
module Main where | |
import Data.IORef | |
import Control.Applicative | |
data X v a where | |
E :: IO a -> X RValue a | |
V :: IO a -> (a -> IO ()) -> X v a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def x | |
2 | |
end | |
p x # prints 2 | |
x = 1 | |
p x # prints 1 | |
p x() # prints 2 | |
# The above is... annoying, but makes sense. Here's the real WTF though: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Music_TitleScreen_Ch1:: | |
tempo 0, 144 | |
duty 3 | |
notetype 12, 10, 0 | |
octave 3 | |
note C_, 8 | |
unknownmusic0xee 50 ; to the left | |
note E_, 8 | |
unknownmusic0xee 237 ; to the right | |
note G_, 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Music_TitleScreen_Ch1:: | |
tempo 0, 144 | |
notetype 12, 10, 0 | |
octave 4 | |
note C_, 4 | |
callchannel ASubroutine | |
note C_, 4 | |
togglecall |
NewerOlder