Skip to content

Instantly share code, notes, and snippets.

@binq
Last active January 27, 2019 22:01
Show Gist options
  • Save binq/89999480859905af982b45c8a9df2ed4 to your computer and use it in GitHub Desktop.
Save binq/89999480859905af982b45c8a9df2ed4 to your computer and use it in GitHub Desktop.
type family DownLevel (a' :: (a :: Type)) :: (b :: Type) where
DownLevel x = x
appendHallway1 ::
forall t ds (ds' :: t) dsl (dsl' :: [t]).
(t ~ DoorState, ds ~ DownLevel ds', dsl ~ DownLevel dsl') =>
Door ds ->
Hallway dsl ->
Hallway (ds : dsl)
appendHallway1 d rest = Section d rest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment