statebox / idris-stbx-core

Category theoretic semantics of glued open Petri nets in Idris
https://statebox.org/
1 stars 1 forks source link

setup literate Idris #8

Closed marcosh closed 5 years ago

marcosh commented 5 years ago

convert all files to literate Idris and setup commands to generate code and documentation

FabrizioRomanoGenovese commented 5 years ago

I'm trying to install lhs2tex. I am installing haskell with sudo dnf install haskell-platform and then cabal install lhs2tex. Everything goes ok till this point but when I try to issue make in the literate idris folder it tells me lhs2tex is not found. What am I doing wrong?

@wires

marcosh commented 5 years ago

@FabrizioRomanoGenovese I actually changed lhs2tex to lhs2TeX becuase that's actually the name of the executable in my os. Maybe you need to revert that change

FabrizioRomanoGenovese commented 5 years ago

When did you do that? Cos I didn't pull in the last 2-3 days or so... Anyway it is strange cos cabal installs it correctly, could it be a problem of executable paths not being updated?

marcosh commented 5 years ago

I did it 3 days ago (https://github.com/statebox/idris-stbx-core/commit/3b8de5a95aaea01f7660390fa76ad9267035806f#diff-b67911656ef5d18c4ae36cb6741b7965R8).

Moreover, I installed it using stack, not cabal. What happens if you do which lhs2tex? Or which lhs2TeX?

FabrizioRomanoGenovese commented 5 years ago

both return no ... in (bunch of paths) :/

FabrizioRomanoGenovese commented 5 years ago

Ok, the executable was in .cabal/bin and is named lhs2TeX. I copied it in my local bin path both under the names lhs2tex and lhs2TeX. Now make works. Still have to install latexmk tho!

FabrizioRomanoGenovese commented 5 years ago

...aaaand it works! great! :D

FabrizioRomanoGenovese commented 5 years ago

Ok, next stupid question: Is there a nice way in visual studio code to have literate idris highlighting? At the moment everything is flat green for me, nor tex or idris are highlighted in anyway. Nevertheless, the file language is detected as "literate idris". Did you manage to customize highlighting already? Are there some settings we can share?

FabrizioRomanoGenovese commented 5 years ago

Ok, I added a latex Documentation folder containing a first endeavor in "literating" Category. Problems so far:

...For now I committed to master because I just created a new folder without really changing anything else. From now on I'll start working with branching and PRs.