Make it compile with MicroHs#257
Conversation
| , PS.unsafeEncodeUtf | ||
| , PS.encodeWith | ||
| , encodeFS | ||
| #if !defined(__MHS__) |
There was a problem hiding this comment.
I think it's more idiomatic to write #ifdef MIN_VERSION_template_haskell: we don't really care MHS or not, we care if it has TH (and, in glorious future, more specifically template-haskell-quasiquoter).
There was a problem hiding this comment.
Yes, that is a better way.
There was a problem hiding this comment.
I've made some updates to minimize the changes.
|
|
||
|
|
||
|
|
||
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) |
There was a problem hiding this comment.
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) | |
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasiquoter) |
The package is called template-haskell-quasiquoter.
| osp = error "Systen.OsPath.Internal.ostr: no Template Haskell" | ||
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) */ |
There was a problem hiding this comment.
| osp = error "Systen.OsPath.Internal.ostr: no Template Haskell" | |
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) */ | |
| osp = error "System.OsPath.Internal.ostr: no Template Haskell" | |
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasiquoter) */ |
|
|
||
| #include "Common.hs" | ||
|
|
||
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) |
There was a problem hiding this comment.
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) | |
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasiquoter) |
| pstr = error "Systen.OsPath.Posix.pstr: no Template Haskell" | ||
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) */ |
There was a problem hiding this comment.
| pstr = error "Systen.OsPath.Posix.pstr: no Template Haskell" | |
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) */ | |
| pstr = error "System.OsPath.Posix.pstr: no Template Haskell" | |
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasiquoter) */ |
| #include "Common.hs" | ||
|
|
||
|
|
||
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) |
There was a problem hiding this comment.
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) | |
| #if defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasiquoter) |
| pstr = error "Systen.OsPath.Windows.pstr: no Template Haskell" | ||
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) */ |
There was a problem hiding this comment.
| pstr = error "Systen.OsPath.Windows.pstr: no Template Haskell" | |
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasi_quoter) */ | |
| pstr = error "System.OsPath.Windows.pstr: no Template Haskell" | |
| #endif /* defined(MIN_VERSION_template_haskell) || defined(MIN_VERSION_template_haskell_quasiquoter) */ |
| if impl(mhs) | ||
| build-depends: | ||
| ghc-compat |
There was a problem hiding this comment.
I think this isn't necessary anymore? @augustss
There was a problem hiding this comment.
No, ghc-compat is implicit now.
|
@augustss did you see the new review comments? |
|
I'm fixing up the remaining issues |
|
this is uploaded to hackage as 1.5.5.0 |
The title say it all.