JacquesCarette / Drasil

Generate all the things (focusing on research software)
https://jacquescarette.github.io/Drasil
BSD 2-Clause "Simplified" License
142 stars 26 forks source link

Question about multiType #3738

Closed B-rando1 closed 4 months ago

B-rando1 commented 4 months ago

I'm just looking to confirm my assumption about multiType. GOOL has a multiType function as part of the RenderType typeclass in RendererClasses.hs:

https://github.com/JacquesCarette/Drasil/blob/e974d5af2f0f4e2433b5066aeed4d17499766557/code/drasil-gool/lib/GOOL/Drasil/RendererClasses.hs#L89-L91

It's implemented like so in SwiftRenderer.hs:

https://github.com/JacquesCarette/Drasil/blob/e974d5af2f0f4e2433b5066aeed4d17499766557/code/drasil-gool/lib/GOOL/Drasil/LanguageRenderer/SwiftRenderer.hs#L212-L217

As far as I can tell this is for defining tuple types. Could I get a confirmation though? Thanks.

bmaclach commented 4 months ago

Your assumption is correct.

smiths commented 4 months ago

The question has been answered, so we can close this issue. :smile: