-
-
Save hgiasac/89e165a50bbbdb7f35421bcdbe0c127d to your computer and use it in GitHub Desktop.
This file contains 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
dynApply :: Dynamic -> Dynamic -> Maybe Dynamic | |
dynApply (Dyn (TrApp (TrApp tr targ) tres) fun) (Dyn targ' arg) | |
| Just HRefl <- eqT tr (typeRep :: TypeRep (->)) | |
, Just HRefl <- eqT targ targ' | |
= Just (Dyn tres (fun arg)) | |
dynApply _ _ = Nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment