{-# LANGUAGE CPP #-}
module Neovim.Compat.Megaparsec
    ( Parser
    , module X
    ) where


import Text.Megaparsec as X

#if MIN_VERSION_megaparsec(6,0,0)

import           Data.Void
import           Text.Megaparsec.Char as X

type Parser = Parsec Void String

#else

import           Text.Megaparsec.String as X

#endif