Did you tell cabal that Paths_my_package is a part of your library?  If it is referenced by your code, then it should be listed in either "exposed-modules" or "other-modules", otherwise it won't be installed.  I've never used dyre so I don't know whether it would cause any issues, but I suspect not.

Thank's a lot, the use of other-models fix my problem!