```{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -Wall -fno-warn-orphans #-}
{-# LANGUAGE Safe #-}

{- |
Module      :  Physics.Learn.CarrotVec
Copyright   :  (c) Scott N. Walck 2011-2019
Maintainer  :  Scott N. Walck <walck@lvc.edu>
Stability   :  experimental

This module defines some basic vector functionality.
It uses the same internal data representation as 'SimpleVec',
but declares 'Vec' to be an instance of 'VectorSpace'.
We import 'zeroV', 'negateV', 'sumV', '^+^', '^-^'
'*^', '^*', '^/', '<.>', 'magnitude'
from 'VectorSpace'.

'CarrotVec' exports exactly the same symbols as 'SimpleVec';
they are just defined differently.
-}

-- 2011 Apr 10
-- Definitions common to SimpleVec and CarrotVec have been put in CommonVec.

module Physics.Learn.CarrotVec
( Vec
, R
, xComp
, yComp
, zComp
, vec
, (^+^)
, (^-^)
, (*^)
, (^*)
, (^/)
, (<.>)
, (><)
, magnitude
, zeroV
, negateV
, sumV
, iHat
, jHat
, kHat
)
where

import Data.VectorSpace
( VectorSpace(..)
, InnerSpace(..)
, Scalar
, (^+^)
, (^-^)
, (*^)
, (^*)
, (^/)
, (<.>)
, magnitude
, zeroV
, negateV
, sumV
)
import Physics.Learn.CommonVec
( Vec(..)
, R
, xComp
, yComp
, zComp
, vec
, (><)
, iHat
, jHat
, kHat
)