:8:4: error: Couldn't match expected type ‘Ghci1.Planet’ with actual type ‘Planet’ NB: ‘Planet’ is defined at :7:1-36 ‘Ghci1.Planet’ is defined at :4:1-37 In the first argument of ‘pn’, namely ‘Mercury’ In the expression: pn Mercury In an equation for ‘it’: it = pn Mercury :9:4: error: Couldn't match expected type ‘Ghci1.Planet’ with actual type ‘Planet’ NB: ‘Planet’ is defined at :7:1-36 ‘Ghci1.Planet’ is defined at :4:1-37 In the first argument of ‘pn’, namely ‘Venus’ In the expression: pn Venus In an equation for ‘it’: it = pn Venus :10:4: error: Couldn't match expected type ‘Ghci1.Planet’ with actual type ‘Planet’ NB: ‘Planet’ is defined at :7:1-36 ‘Ghci1.Planet’ is defined at :4:1-37 In the first argument of ‘pn’, namely ‘Mars’ In the expression: pn Mars In an equation for ‘it’: it = pn Mars :12:44: error: Couldn't match expected type ‘Planet’ with actual type ‘Ghci1.Planet’ NB: ‘Ghci1.Planet’ is defined at :4:1-37 ‘Planet’ is defined at :7:1-36 In the pattern: Earth In an equation for ‘pn’: pn Earth = "E"