Is SF already defined anywhere or at least has a name?
SF
data SF afx = SF a (fx) instance Functor f => Functor (SF af) where fmap g (SF a fx) = SF a (fmap g fx)
Your functor looks like
type SF af = (,) a :. f
using functor-combo .
(I somehow prefer to look at it using composition rather than using the product and Const .)
Const
You can simply define functor products
data (f :* g) a = P (fa) (ga) deriving Functor
and then write it directly
type SF af = Const a :* f
Source: https://habr.com/ru/post/1203890/More articles:Problems with ViralHeat API with getURL () command in RCurl package - apiDUnit: "Global" SetUp and TearDown - delphiR The mismatch between the browser and GET / getURL - rUsing the ASP.net MVC project as a “base” project for other MVC projects - asp.net-mvcChange remote HEAD branch in git hosted on Visual Studio online - githow can a page redirect users to the previous page if they try to access the page through a URL? - redirectDjango Nested Groups: Groups in Groups - djangoHow to adjust blur level of UIVisualEffectView - iosCreating a project using PCL (Point Cloud Library) on Mac OS X - linkerHive rewriting table - overwriteAll Articles