Created
December 20, 2019 18:04
-
-
Save kosmikus/b58ab97e2cd26d34cd1f06c588ff86fd to your computer and use it in GitHub Desktop.
Revisions
-
kosmikus created this gist
Dec 20, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ {-# LANGUAGE DataKinds, FlexibleContexts, TypeFamilies, TypeOperators #-} module SOPTail where import Data.SOP import Data.SOP.Dict test :: (All c ys, ys ~ (x : xs)) => Proxy x -> Proxy c -> Dict (All c) xs test _ _ = Dict