Normalise to / in generating interface names

In practice, this is only for consistency in the tests. Is this the
right way?
This commit is contained in:
Edwin Brady 2020-07-12 17:33:33 +01:00
parent 6a53e0177c
commit 3794b20d0c

View File

@ -26,9 +26,16 @@ import Data.NameMap
%default covering
replaceSep : String -> String
replaceSep = pack . map toForward . unpack
where
toForward : Char -> Char
toForward '\\' = '/'
toForward x = x
mkImpl : FC -> Name -> List RawImp -> Name
mkImpl fc n ps
= DN (show n ++ " implementation at " ++ show fc)
= DN (show n ++ " implementation at " ++ replaceSep (show fc))
(UN ("__Impl_" ++ show n ++ "_" ++
showSep "_" (map show ps)))