Add various capabilities for generating graphs, fixes to lasgun

This commit is contained in:
2022-07-06 11:54:29 +01:00
parent cd3463d3d8
commit d63495e335
29 changed files with 1801 additions and 178 deletions
+12
View File
@@ -0,0 +1,12 @@
-- https://dev.to/piq9117/haskell-generating-lenses-for-third-party-libraries-1oik
module ThirdPartyLens where
import Language.Haskell.TH
import Control.Lens.Operators
import Control.Lens.TH
mkCustomLenses :: Name -> DecsQ
mkCustomLenses = makeLensesWith
$ lensRules
& lensField
.~ (\_ _ name -> [TopName ( mkName $ nameBase name ++ "L" )]) -- you can append whatever suits your code base here, I chose to append "L"