Drasil
Drasil copied to clipboard
`CommonIdea`: What is it?
Objective
To figure out what CommonIdea is needed for and how it is currently used.
λ rg "CommonIdea" -ths -l
drasil-theory/lib/Theory/Drasil/Theory.hs
drasil-theory/lib/Theory/Drasil/GenDefn.hs
drasil-lang/lib/Language/Drasil.hs
drasil-theory/lib/Theory/Drasil/InstanceModel.hs
drasil-theory/lib/Theory/Drasil/DataDefinition.hs
drasil-system/lib/System/Drasil/System.hs
drasil-lang/lib/Language/Drasil/Classes.hs
drasil-lang/lib/Language/Drasil/Chunk/CommonIdea.hs
drasil-lang/lib/Language/Drasil/Chunk/CodeVar.hs
drasil-lang/lib/Language/Drasil/Chunk/NamedIdea.hs
It is used in files that confuses me. In particular, why is it used at all in drasil-theory/? And CodeVar.hs? And System.hs?
Because it is likely used for "meta data" about Drasil itself. This is why those places require the abbreviation!
Probably the most sane thing to do is to separate meta data from data in some way that is clearer than this indirection.