ERROR: This package is broken except on these platforms: Darwin-*-x86_64 FreeBSD-*-i386 FreeBSD-*-x86_64 NetBSD-*-x86_64 SunOS-*-x86_64.
ERROR: This package has set PKG_FAIL_REASON:
ERROR: internal error: unsupported platform
ERROR: ghc-8.8.4nb8 is marked broken on NetBSD-9.0-sparc
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/ghc88