mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-05 06:07:21 +03:00
printout builtin names
This commit is contained in:
parent
d3c39700c5
commit
0601547054
@ -84,8 +84,9 @@ decodeResult _source (Result _notes (Just (_env, Just (t, typ)))) =
|
||||
Right (t, typ)
|
||||
|
||||
makePassingTest :: (EitherResult -> Test ()) -> FilePath -> Test ()
|
||||
makePassingTest how filepath = join . liftIO $ do
|
||||
makePassingTest how filepath = join $ do
|
||||
let shortName = joinPath . drop 1 . splitPath $ filepath
|
||||
source <- unpack <$> Data.Text.IO.readFile filepath
|
||||
source <- io $ unpack <$> Data.Text.IO.readFile filepath
|
||||
io $ putStrLn (show $ Builtin.names @Symbol)
|
||||
pure $ scope shortName . how . decodeResult source .
|
||||
parseAndSynthesizeAsFile shortName $ source
|
||||
|
Loading…
Reference in New Issue
Block a user