Reputation: 8079
Reading Yesod's source code, I've encountered files with a ".hsfiles" extension. Example: mongo.hsfiles. What are them, why they were created and why use them?
Upvotes: 3
Views: 423
Reputation: 48756
You can see here the relevant code:
backendBS :: Backend -> S.ByteString
backendBS Sqlite = $(embedFile "hsfiles/sqlite.hsfiles")
backendBS Postgresql = $(embedFile "hsfiles/postgres.hsfiles")
backendBS PostgresqlFay = $(embedFile "hsfiles/postgres-fay.hsfiles")
backendBS Mysql = $(embedFile "hsfiles/mysql.hsfiles")
backendBS MongoDB = $(embedFile "hsfiles/mongo.hsfiles")
backendBS Simple = $(embedFile "hsfiles/simple.hsfiles")
backendBS Minimal = $(embedFile "hsfiles/minimal.hsfiles")
So, it's used in their Scaffolding site to generate the defaults.
Upvotes: 4