CS代写 — setting the “warn-incomplete-patterns” flag asks GHC to warn you

— setting the “warn-incomplete-patterns” flag asks GHC to warn you
— about possible missing cases in pattern-matching definitions
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}

Copyright By PowCoder代写 加微信 powcoder

— see https://wiki.haskell.org/Safe_Haskell
{-# LANGUAGE Safe #-}

module ClassTest1 (checkParity, substitution, largestPrimeBetween, strongPrimes, executeCommands, atmChange) where

import Types
import Data.Char

———————————————————————————
—————- DO **NOT** MAKE ANY CHANGES ABOVE THIS LINE ——————–
———————————————————————————

{- Question 1 -}

checkParity :: String -> Bool
checkParity = undefined

{- Question 2 -}

substitution :: String -> String -> String
substitution plaintext key = undefined

{- Question 3 -}

largestPrimeBetween :: Int -> Int
largestPrimeBetween = undefined

strongPrimes :: Int -> [Int]
strongPrimes n = undefined

{- Question 4 -}

executeCommands :: [Command] -> (Int, Int) -> (Int, Int)
executeCommands = undefined

{- Question 5 -}

atmChange :: Int -> [Int] -> [(Int, Int)]
atmChange = undefined

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com