Dhall-lang: Prelude: Remove files without .dhall extension?!

Created on 1 Oct 2020  路  5Comments  路  Source: dhall-lang/dhall-lang

https://github.com/dhall-lang/dhall-lang/pull/1076#discussion_r498206835 indicates that there's some confusion about the purpose of the Prelude files without the .dhall extension.

When can we remove these files?

Most helpful comment

@sjakobi: I think one way we can ease the migration is for dhall lint to fix old Prelude imports to use the .dhall extension. Then after a grace period we can remove the extension-free imports.

All 5 comments

@sjakobi: I think one way we can ease the migration is for dhall lint to fix old Prelude imports to use the .dhall extension. Then after a grace period we can remove the extension-free imports.

That'd be great. I've been trying to go through and update stuff where I see it, but I have so many prelude imports scattered through so many projects, haha.

I don't know if this is only relevant for dhall-haskell, but wouldn't be great to have a mechanism to let users mark a dhall file as deprecated? That way implementations could show a warning when the user imports those files

That way we could mark these old files without the extension as deprecated and the user would notice it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RyanSiu1995 picture RyanSiu1995  路  3Comments

Nadrieril picture Nadrieril  路  6Comments

saurabhnanda picture saurabhnanda  路  4Comments

joneshf picture joneshf  路  5Comments

Koshroy picture Koshroy  路  6Comments